skip to Main Content

Let’s say for example I want to create a site for native speakers and a site where you will be redirected im your browser language is different from the native language.

For the default page I set the header for example to:
header(‘Content-language: fr’);

But what would be better for the other page?

“es-fr” or just “es”? (for spanish speaking people in france in this example)



  1. If you have different version of Spanish pages for different regions, you can use “es-fr”, else you can use as just “es”. Example would be UK english and US english. We have different content, so we would setting the header accordingly, else we would just set it as “fr” for both Canada french and France french.

    Login or Signup to reply.
  2. I doubt you will find users set their browser settings beyond a language; if you specify “es-fr” and “fr” only, some Spanish-speaking folks (and search engines) may end up with French content. I have my browser set to “en” primary and “es” and “it” as secondary, and I sometimes see ads served up to me in Spanish, and sometimes web pages served up in Spanish.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top