Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Search engines and browser accept-language

I'm building a web portal where language content will generally depend on the "accept-language" sent by the browser. The same content-URI will thus serve different content to different users depending on their browser setting.

I'm very curious to know how this will affect search indexing. Does Google index using all languages, and is it handled well?

like image 316
friism Avatar asked Dec 15 '08 14:12

friism


1 Answers

They don't send accept-language, so the site will be indexed in the default language that you select.

I recommend you to have different URL for each language, not only for the search engines, but for letting the user change the site language without changing the "accept-language" and letting the user to send a URL to a friend with the language selected.

In this answer you have how I managed it in .net, but you will get the idea: Using the "accept-language" the make the first redirect, and them play only with the url.

like image 197
Eduardo Molteni Avatar answered Oct 19 '22 11:10

Eduardo Molteni