Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
You are trying to activate a redirect for users based on their browser language on your bilingual site (Greek as default and English). You are unsure about the behavior when a user from Spain with Spanish as their browser language visits your site.
Solution:
We recommend setting up the browser language redirect feature. This feature will redirect users to the language that matches the language in their browser. If the visitor's browser language doesn't match any of the languages on your site, they will be redirected to the site's default language, which in your case is Greek. For detailed guidance on setting this up, please visit our documentation on Automatic Redirect Based on Browser Language.

If this solution does not apply to your case, or if it seems outdated, 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. Should you need further assistance, please do not hesitate to open a new support ticket at our 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 1 reply, has 0 voices.

Last updated by nikolaosM 3 days, 5 hours ago.

Assisted by: Carlos Rojas.

Author Posts
January 8, 2025 at 8:48 am #16572417

nikolaosM

Background of the issue:
I am trying to activate a redirect for users based on their browser language on my two-language site (Greek as the default language and English).

Symptoms:
I am unsure about the behavior when a user visits our site from Spain with Spanish as their browser language.

Questions:
What happens when someone visits our site from Spain with Spanish as their browser language?
How can I ensure that a user with a Spanish browser language is redirected to the English version of the page instead of the Greek one?

January 8, 2025 at 11:57 am #16573103

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Hello,
Thank you for contacting us

The browser language redirect (https://wpml.org/documentation/getting-started-guide/language-setup/automatic-redirect-based-on-browser-language/) will redirect users to the language that matches the language in their browser. If the language of the visitor's browser doesn't match any of the languages of the site, then the visitor will be redirected to the site default language.

Regards,
Carlos

January 8, 2025 at 2:03 pm #16573836

nikolaosM

Hello,

Thanks for your repply. We will not continue with the setting because it will mess up the SEO.