Answer the question
In order to leave comments, you need to log in
What is the best way to specify the locale?
What is the best way to specify the locale in the address?
site.com/about?hl=en
site.com/en/about
Answer the question
In order to leave comments, you need to log in
The first option is convenient in that the selected locale can be removed in the cookie / in the session / somewhere else, and then transparently used. And if you use this link only to switch between languages, it’s generally convenient, plus you can use the already configured language priorities in the browser.
The second option is handy for search engine spiders and proxy servers. But it is uncomfortable for users to follow these links, they will get to a specific fixed language, which does not depend on the priority of languages in browser settings.
The same puzzled.
Search engines strongly recommend using the second option.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question