Hello, I'm mat and I have a translation problem.... Basically I have a quite large website and want to begin to offer it to surfers who speak other languages. Here is my aim: For my server to read the browser's language settings and then place the surfer on the page which is automatically translated for them and delivers them a different url. Ok example: A surfer visits my site from Poland and he would land on http://www.mysite.com/dogs.html, however my server reads that his browser settings are Polish and the server automatically translates the page dogs.html and creates http://www.mysite.com/dogs.html&pl (Notice the &pl is just a quick abbreviation for the Polish language.) Then I would like the &pl etc urls indexed in the search engines. A) Is this possible? B) My best method of attack to complete this aim? Any help is graciously acknowledged and thanked. Thanks for your time
Alot of websites that do geo-targeting don't read the browser settings (there is $_SERVER["HTTP_ACCEPT_LANGUAGE"] in php but that isn't always accurate), but rather the geography is based on the IP address of the visitor, kinda like how kblinker (in sig) knows how to automatically redirect a visitor based on location. An easy way would be to call geoplugin into PHP: http://www.geoplugin.com/webservices/php Example $location = unserialize(file_get_contents('http://www.geoplugin.net/php.gp?ip='.$_SERVER['REMOTE_ADDR'])); $country_code = $location['geoplugin_countryCode']; PHP: From there you can use the country code (US = United States, CA = Canada, etc etc)