Hi Lucas,
Quote:
Originally Posted by Lucas
What would be the best way to create a multilingual site and have it indexed in both languages? This is what I have come up with so far but I don't know which one would work the best (or if there is an even better option). - Script detects language from the headers, and then user will be able to change it through a link that sets the appropriate cookie.
- This would not work well with search engines.
- Make an intro page where the user is presented a link to either one or the other version.
- Have different languages on different subdomains (en.site.com/page).
- Have different languages in different directories (site.com/en/page).
|
You should definitely NOT use any solution based on Cookies, Browser language, Sessions and such. This way you only stop the search engines from indexing all but the default language version.
The way to go here is the distinction in the URL. Whether you choose to go with subdomains or "directories" is IMO up to you. However I wouldn't make an intro page. Intro pages are in general a no-no. Instead make one language the default one and show the homepage in this particular language to a new user. Put language switches on every page of the site.
Quote:
Originally Posted by Lucas
By the way, how do search engine spiders treat HTTP Redirects?
|
There are more redirects. In short - 301 goes for permanent redirects, 302 for temporary. Be warned, if you write only
PHP Code:
Header('Location: http://example.com');
you redirect with the default 302. For 301 the code should go like this:
PHP Code:
Header('HTTP/1.1 301 Moved Permanently');
Header('Location: http://example.com');
But then again, this might not be new to you.
|