This thread is resolved. Here is a description of the problem and solution.
Problem:
When using the WPML language switcher on a website, pressing the switcher redirects back to the default language instead of maintaining the selected language.
Solution:
1. Check and revise the DNS entries. Consider disabling services like Cloudflare/Cloudfront and Kinsta caching to see if this resolves the issue. You may need to contact your hosting support for assistance.
2. Ensure that the server configuration is correctly set up for sites in a subfolder. This involves checking the rewrite rules in either the
.htaccess
file or the
nginx.conf
file.
If these steps do not resolve the issue, we may need to create a duplicator package of your site to further diagnose the problem. For more details on how to provide a duplicator package, please visit https://wpml.org/faq/provide-supporters-copy-site/.
Please note that this solution might be outdated or not applicable to your specific case. We 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. If the issue persists, please open a new support ticket at 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 21 replies, has 2 voices.
Last updated by 1 year, 1 month ago.
Assisted by: Noman.