Skip Navigation

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

Problem:
The client was unable to switch to the English version of their website using the language switcher. Instead of redirecting to the correct URL (example.eu/contact), it was redirecting to an incorrect URL (example.plcontact). The client had set up a 301 redirection from their primary domain to the secondary domain and was unsure if the issue was due to server redirection settings or if additional configuration was needed.

Solution:
We advised the client that when using WPML's different domains per language feature, they should not use any redirects. Instead, they need to add the new domain as a parked domain (alias) to the primary domain. This setup allows the new domain to display the same site content without redirection. We provided a step-by-step guide to ensure the domains are set up correctly:
1. Add the new domain as a parked domain to the primary domain.
2. Verify that visiting the new domain shows the same site as the primary domain without any redirection.
3. Configure the language URL options in WPML accordingly.
We also provided a link to the WPML documentation for further assistance: https://wpml.org/documentation/getting-started-guide/language-setup/language-url-options/how-to-use-wpml-with-different-domains-per-language/

If the provided solution does not resolve the issue or seems irrelevant due to being outdated or not applicable to your case, we recommend opening a new support ticket. Additionally, we highly suggest checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. For further assistance, please contact us on 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 Mohamed Sayed 10 months, 1 week ago.

Assisted by: Mohamed Sayed.

Author Posts
February 15, 2024 at 5:34 pm #15308765

michalM-12

I have tried to translate separately bigcards.pl/kontakt which should generate link bigcards.eu/contact => language switcher in footer below logo shows it is ok but when i click english to change language i get link bigcards.plcontact instead?

I have set 301 redirection from hidden link => hidden link then i setup domain for second language and validation came thru positive, rest i left as it was by default yet i cannot switch to english due to issue with wrong url

Does it mean i made sth wrong from server/redirection side or do i need to set up something else to make it work?

February 16, 2024 at 12:42 am #15309768

Mohamed Sayed

Hi,
Thanks for contacting WPML support.

To use the different domain per language option with WPML, you need to add the new domain as a parked domain (alias) to the primary domain and not use any redirect.

You can check if the domains are set up properly before you set the option in WPML by visiting the new domain and it should show the same site without a redirection.

Please check the following guide for more details about how to use WPML with different domains per language: https://wpml.org/documentation/getting-started-guide/language-setup/language-url-options/how-to-use-wpml-with-different-domains-per-language/

Let me know please if that helps.

Kind regards,
Mohamed

February 16, 2024 at 8:33 am #15310445

michalM-12

can i use DNS-A record to point .eu to .pl domain? as this domain is hosted with shared hosting services where i cannot point domain/folder at all?

February 18, 2024 at 9:29 am #15314616

Mohamed Sayed

Sorry for the late reply due to the weekend.

I checked with the team and they confirmed it should work if the web server (the virtualhost) is prepared to receive requests from that IP.

Please try using the DNS A record to point the secondary domain to the same IP of primary domain and check if that works with you.