Skip to content Skip to sidebar

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 - -
- - - - - - -

Supporter timezone: Africa/Cairo (GMT+03:00)

This topic contains 5 replies, has 2 voices.

Last updated by Osama Mersal 1 year, 1 month ago.

Assisted by: Osama Mersal.

Author Posts
June 10, 2024 at 2:39 pm #15722772

dwaynev

Background of the issue:
I am working on a site under development and trying to set up a redirect when visiting a WPML translated .nl page. Specifically, I want to ensure that visiting brandonsmeets.nl does not redirect to brandonsmeets.eu.

Symptoms:
There is a short redirect from brandonsmeets.nl to brandonsmeets.eu, which prevents Google Ads from functioning on the website.

Questions:
Is it possible that WPML causes this issue?

June 10, 2024 at 3:06 pm #15722928

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Please go to WPML-> languages-> Browser language redirect section and disable this option.

After that, please clear the site's cache, resave the permalinks, and check the Dutch domain.

Best regards,
Osama

June 13, 2024 at 10:03 am #15735319

dwaynev

Hello,

I disabled this option but whenever I go to the dutch domain, I still get a redirect to the .eu.
I added screenshots, so you can see at first the website loads in the .nl and than it loads the .eu and than it goes back to the .nl

1.jpg
2.jpg
3.jpg
June 13, 2024 at 10:15 am #15735460

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Please let me know how to reproduce the issue. I tried the language switcher and typing the URL directly, and both worked correctly. Kindly check this video. (hidden link)

Best regards,
Osama

June 13, 2024 at 11:55 am #15736024

dwaynev

Hi,

I saw in the video you started at brandonsmeets.eu
I tried to recreate it, also used a incognito tab and saw there is a difference if I type:

brandonsmeets.eu and click on the dutch flag that works correctly

hidden link - here everything works correctly

But if I type:

hidden link - here it goes to brandonsmeets.eu
or just
brandonsmeets.nl - here it goes to brandonsmeets.eu

So the last two are going wrong, could you test if you also have this?

June 13, 2024 at 12:19 pm #15736065

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Yeah, I see the same behavior. Please follow these steps to check if the issue persists in a minimal environment.

1- Deactivate all the plugins except WPML CMS.
2- Switch to a WordPress default theme like Twenty Twenty-one.

If the issue is gone, activate them one by one to see which one is causing an interaction issue.

❌ Please backup your database before performing the above test ❌

Also, please contact your host provider and check if there is a server redirection because I see a redirection rule in the network tab of the Google dev tools. (Kindly check the attached screenshot)

Best regards,
Osama

2024-06-13_15-14-51.jpg

The topic ‘[Closed] Redirect when visiting WPML translated .nl page’ is closed to new replies.