Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is experiencing an issue where navigating to

www.domain.com

redirects to the homepage of the main language instead of redirecting to the correct language version of the site.
Solution:
We recommend informing the hosting support about the issue with WPML when using NGINX and a different domain per language and asking to review the DNS settings of the server.
Please note that the solution provided might be irrelevant if it's outdated or not applicable to your case. If after checking the known issues and confirming that you have the latest versions of themes and plugins the problem persists, we highly recommend opening a new support ticket. You can do so by visiting the WPML support forum.

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.

This topic contains 3 replies, has 2 voices.

Last updated by Andreas W. 8 months, 1 week ago.

Assisted by: Andreas W..

Author Posts
March 23, 2024 at 4:33 pm #15443355

haraldK-9

Hi,
one more:

i have also a problem with the www. part.
domain.com does redirect correct to the cirrect language
hidden link does redirect to the homepage of the "main language"

i checked dns settings twice and i asked their support they said all is good.

any advice what here is wrong?

Thank you again for your help!
Best regards

March 23, 2024 at 4:36 pm #15443366

haraldK-9

Can i send you the Credentials somehow? So you can check the website?
Thank you in advance

March 23, 2024 at 6:55 pm #15443426

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

It would also be very helpful if you could send me a screenshot of your DNS setup.

As far I am aware, each domain must be registered with and without "www" and the second language domains need to point to the main site domain by using an ARecord entry.

Is this the case?

---

It would also be very helpful if you could send us the WPML information for troubleshooting.
More information about this here:
https://wpml.org/de/faq/provide-debug-information-faster-support

---

I would like to offer to have a closer look at the problem and request temporary access (wp-admin) to the website to investigate this issue further.

You can find the required fields below the comment section when you log in to leave the next reply. The information you provide is private, which means only you and I can see and access it.

IMPORTANT
Please be sure to make a backup copy of the website and database before allowing us access.
If you can't see the wp-admin / FTP fields, your post and website credentials are set as PUBLIC. DO NOT publish the data unless you see the required wp-admin / FTP fields.

The private response form looks like this:
hidden link

Next time you reply, click "I still need assistance."

Video:
hidden link

Please note that we are obliged to request this information individually on each ticket. We may not access any access information not specifically submitted on this ticket in the private response form.

Best regards
Andreas

March 24, 2024 at 12:51 am #15443582

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Could you please inform the hosting support about the following known issues and ask them to try out the suggested workaround?

https://wpml.org/errata/home-page-redirects-to-default-language-with-nginx-and-a-different-domain-per-language/

I will be awaiting your feedback.

Best regards
Andreas

March 24, 2024 at 12:48 pm #15443843

haraldK-9

The hosting provider was able to fix the nginx config.
Thank you