I am working on a multilingual website (php/mysql) and my question is what would be the best solution for language identification – sessions/cookies or URI identification. I mean in terms of SEO, what would be more accurate.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are different types of projects which shouldn’t use the same language implementation.
Let me give some examples:
The first project has an single domain name, let’s say example.com. This website, should be available in three languages. In order to let the search engine clearly crawl and index each language – the correct solution here would be passing it by url. example.com/fr/ for french.
The second project, has an domain name for each language, example.fr, example.co.uk. It would be best that each domain is only indexed by the search engine by it’s primary language. Therefor, the solution I’d pick would be storing the language in a cookie when switching. (or redirect to the other domain entirely).
If we’d pick the solution of example 1 for example 2, both example.co.uk/fr/ and example.fr would have the same content, which isn’t SEO friendly.