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 10 months, 1 week ago.
Assisted by: Mohamed Sayed.