Just to make everything clear.
I am trying to figure out how to create a website with a choice of language.
Selecting a language simply updates the current page, but changes the session language variable (if the user first logs into it, it sets the value to eng).
Now let's find out how the crawler works, it visits the site, and the language is automatically selected for it, so basically it recognizes the language of the website and classifies it as βengβ.
I'm just not sure if this is the right way to create a multilingual website, since the crawler will not crawl pages in another language, am I right? (or maybe he can detect that the language has been changed and rescan all pages ... which sounds a bit strange). Thus, the pages will not be referenced in the search engine database. So what is the right way to create such sites?
EDIT: I think of mod_rewrite, do you think this is a great solution?
source share