Home›Support›English Support›[Resolved] Switching back to default language (NL) has wrong link, it stays on the same domain (.de or .eu)
[Resolved] Switching back to default language (NL) has wrong link, it stays on the same domain (.de or .eu)
This thread is resolved. Here is a description of the problem and solution.
Problem: You are experiencing issues with language switching on your website using WPML with three domains. Specifically, when switching back to the default Dutch domain (dogmills.nl) from either the English (dogmills.eu) or German (dogmills.de) domains, the link does not revert to .nl as expected. Additionally, accessing the backend of dogmills.nl sometimes redirects to dogmills.eu, causing incorrect WPML language settings. Solution: We found that the problem is linked to one of the must-use plugins on your site, which seems to be configured for handling temporary domains. To resolve this issue, we recommend disabling these must-use plugins. You can do this by renaming the must-use plugin folder. After renaming, check if the language switching and domain redirection issues are resolved. If necessary, consult with the plugin author to understand the purpose of these plugins on your site and whether they are still needed.
If this solution does not apply to your situation, or if it seems outdated, please check the related known issues and confirm that you have installed the latest versions of themes and plugins. If problems persist, we highly recommend opening a new support ticket with us for further assistance.
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 manage language switching on my website with three domains using WPML. The default domain is dogmills.nl for Dutch (NL), dogmills.eu for English (EN), and dogmills.de for German (DE). I have set up the menu selector and shortcode in the header using Elementor Pro. I followed several manuals from WPML and Elementor and checked the domain aliases at my hosting provider.
Symptoms:
When I switch back to the default language (NL) from another language, the link remains on the same domain extension (.de or .eu) instead of switching back to .nl. This issue only occurs on the .nl domain. Additionally, when accessing the backend of dogmills.nl, it sometimes redirects to dogmills.eu, causing the WPML language settings to shift incorrectly.
Like (NL) -> for dogmills.eu, (EN) for dogmills.nl
Questions:
What am I doing wrong with the language switching setup?
Why does the backend of dogmills.nl redirect to dogmills.eu and cause WPML language settings to shift?
I'm sorry,
Yesterday evening I tried to switch from hostingprovider, in the hope that this was the solution. Unfortunatly that wasn't the case, but the new hostingprovider added the lightspeed-cache (I was not aware of that) I just deactivated it.
The problem still remains.
I checked further, and I can see the issue is caused by one of the must-use plugins you have, something that is used for temporary domains.
Please disable them, you can rename the must-use plugin folder and then it should work fine. Probably they do something to domains, you can check further with the author of this plugins, why and if needed for your website.
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.