This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is experiencing an ERR_TOO_MANY_REDIRECTS error when using the 'Use directory for default language' option in WPML. Despite following the guide on setting up directory defaults and redirections, the error occurs intermittently.
Solution:
1. We confirmed that the homepage redirection to the language directory is an expected result due to the settings applied. This is in line with the documentation provided at https://wpml.org/documentation/getting-started-guide/language-setup/directory-default-language/#redirect-the-root-domain-to-the-default-language-directory.
2. We suggested checking if the
home_url()
function is being filtered by other plugins or the theme, which might be causing the error. As a troubleshooting step, we recommended using a hardcoded URL (https://****/el) to see if the issue persists.
If this solution does not resolve the issue or seems irrelevant due to being outdated or not applicable to your 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 problem continues, 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 16 replies, has 2 voices.
Last updated by 1 month, 2 weeks ago.
Assisted by: Bigul.