Title: Redirection by language setting not working
Last modified: August 30, 2016

---

# Redirection by language setting not working

 *  [Astrix](https://wordpress.org/support/users/astrix/)
 * (@astrix)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/redirection-by-language-setting-not-working/)
 * Hello,
 * I’m running a website in french (main language set) and I have articles in english
   too. I added us_US with en slug in polylang and activated the “automatically 
   redirect depending on selected language in browser” option. When I set the language
   in us_US in Chrome and visit my website, it’s still loading the default french
   address, no redirection !
 * I tried with a US proxy, same, only the french version loads. I can access the
   english version but by manually clicking a button I added in the menu.
 * Is there a fix for this ?
 * Thank you !
 * [https://wordpress.org/plugins/polylang/](https://wordpress.org/plugins/polylang/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [Astrix](https://wordpress.org/support/users/astrix/)
 * (@astrix)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/redirection-by-language-setting-not-working/#post-6899757)
 * I managed to solve the issue by deleting all data from the browser ! Now, when
   us_US is set in the browser, it’s loading the /en/ address of my website !
 * But, I have a very specific issue now :
 * I would like my site to be in French (main) for all french readers and all other
   languages to redirect to the /en/ version ! Is it possible ?
 * (I tried setting my browser in German, and it loaded the default main language
   main page : French)
 * Or do I have to create thousands version of my website, one for each language?(
   would be a real pain !! 🙂 )
 * Thanks !
 *  Plugin Support [Chrystl](https://wordpress.org/support/users/chrystl/)
 * (@chrystl)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/redirection-by-language-setting-not-working/#post-6899894)
 * Hi
    The explanation below is in the case of you have checked the option “When
   the front page is visited, set the language according to the browser preference”.
   Note that this option is supported in all cases except when using different domains.
 * When activated, someone visiting your homepage for the first time is redirected
   to the homepage in the language according to his browser preferences. If his 
   browser preferences do not include any language of your site, the default language(
   french in your case) is used. It is why you have loaded the French whereas the
   German language is setting in your browser preferences.
 * Polylang sets a cookie, so that returning visitors are redirected to the homepage
   in their last browsed language, in your case either the French of the English.
   So if you want to test the browser languages preferences of your site, don’t 
   forget to clear your cookies between each test.
 * > I would like my site to be in French (main) for all french readers
 * To get this, the French must be set before the English in the browser preferences
   of your visitor which matches your website languages. The visitor is redirected
   to the French home page.
 * > and all other languages to redirect to the /en/ version
 *  In this case the English must be set before the French in the browser preferences
   of your visitor. The visitor is redirected to the English home page.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Redirection by language setting not working’ is closed to new replies.

 * ![](https://ps.w.org/polylang/assets/icon-256x256.png?rev=3433336)
 * [Polylang](https://wordpress.org/plugins/polylang/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/polylang/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/polylang/)
 * [Active Topics](https://wordpress.org/support/plugin/polylang/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/polylang/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/polylang/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Chrystl](https://wordpress.org/support/users/chrystl/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/redirection-by-language-setting-not-working/#post-6899894)
 * Status: not resolved