This thread is resolved. Here is a description of the problem and solution.
Problem: The client is attempting to configure WPML to use different domains or URLs for each language on their WordPress site. However, when activating a domain per language and changing the language on the selector, the URL changes but the language does not. Additionally, there is a redirect loop preventing access to the site. Solution: First, ensure that the DNS settings for each domain are correctly pointing to the same WordPress installation. Next, verify that the WPML settings for using different domains per language are correctly configured. This involves setting up WPML to recognize each domain as a different language endpoint. If there is a redirect loop, it's essential to check the .htaccess file or the server configuration for any incorrect redirection rules that might be causing the loop. Removing or correcting these rules should resolve the issue.
If this solution does not apply to your case, or if it seems outdated, we recommend opening a new support ticket. We also highly recommend 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 visit our support forum at https://wpml.org/forums/.
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.
Background of the issue:
I am trying to use a different domain or URL per language for my WordPress site. I want to use FOOD4FITNES.PT for Portuguese, FOOD4FITNESS.ES for Spanish, and en.food4fitness.pt for the English version.
Symptoms:
When i activate a domain per language and i change the language on the selector it changes the url but doesnt not change the language.
I have tried several methods but cannot make this work.
Questions:
How can I configure WPML to use different domains or URLs for each language?
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: Europe/Madrid (GMT+02:00)
Hi,
dince the Multi-Domain feature is currently deactivated, I’m unable to test the error.
The best approach would be to set up a staging environment and connect your real domains to the test instance. That way, we can accurately simulate the exact behavior.
Because of this, there’s nothing I can test at the moment. Please either:
- Set up a test environment so I can run the necessary checks, or
- Change the domain setting on the live environment yourself and let me know once I can reproduce/test the issue.
As you can see, the redirect sends you back to the main domain. When you try to save the Multi-Domain option, English isn’t stored correctly and instead shows “Não válido.” For Spanish, the product page returns a 404 error, since there’s also an active redirect pointing to the main domain.
It looks like the additional domain was set up with a redirect instead of pointing to the same root directory. You’ll need to review the DNS settings for this configuration. The best approach is to contact your hosting provider for assistance, as each hoster handles this differently.