Headline
pretty simple.
My sites consist of English and Spanish versions. You can go to the main site, which is in Spanish, by clicking on http://www.chrishonn.com and the translated version, which is in English, at http://en.chrishonn.com . In the index of each page there is a link (below) that allows the user to go from one site to another.
However, I was wondering how large sites such as Google, Yahoo !, and sites of other brands recognize the user's geographical location / IP address, so - depending on this - the language of the site is adapted (i.e. you from China and you visit www.google.com, you will be redirected to www.google.cn).
I indicated on each page of my site the language:
<meta http-equiv="content-language" content="en">
This example, of course, refers to one of the http://en.chrishonn.com sites that are in English.
Hope someone can give me a hand. Thank you (if I missed something, let me know).
javascript html geolocation website
cr0z3r
source share