I am developing a multi-language site in Django.
In order to improve SEO, I will give every language version a unique URL like below,
- english: www.foo.com/en/index.html
- french: www.foo.com/fr/index.html
- chinese: www.foo.com/zh/index.html
However,
Django looks for a "django_language" key in user's session or cookie to determine language in default. So, despite which language the user chose, the URL is always the same. For instance: http://www.foo.com/index.html
How to resolve this problem?