I'm encountering an issue with my website, which is hosted on an Apache server, and I'm seeking your assistance. I've implemented the following rewrite rules to automatically redirect users based on their browser language settings to the appropriate language version of the site:
The goal is to redirect users with their browser language set to Simplified Chinese (zh-CN) to the Chinese version of the site. However, this setup has led to an infinite redirection loop when accessing the main domain.
Do you have any hooks or solutions to address this redirection loop issue? Or could you recommend a better practice to achieve browser-based redirection without causing loops?
If you are not able to accomplish this, I would recommend you contact one of our certified partners who will be more than happy to help you with this. In this link, you will find a list of our certified partners: https://wpml.org/contractors/
Thanks.
The topic ‘[Closed] Assistance Needed: Resolving Infinite Redirection Loop Based on Browser Language’ is closed to new replies.
Manage Cookie Consent
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.