SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
-
Oct 29, 2008, 10:51 #1
- Join Date
- Jan 2005
- Location
- blahblahblah
- Posts
- 1,447
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
multi-language website, language not found: which strategy?
Hi,
Let's consider the following url in the context of a multi-language website, whose default language is english:
http:www.website.com/en/ -> website loads in English
http:www.website.com/fr/ -> website loads in French
http:www.website.com/ -> website loads in English (default)
Two questions:
1.
How do you handle:
http:www.website.com/erfn/, where ernf is a non-existing language. So far, I trigger the default language. But what bothers me is that the url looks valid, especially at the eyes of a bot. Should I 404? Redirect to the default url? What type of redirect in this case?
2.
These two urls:
http:www.website.com/en/
http:www.website.com/
have the same content. It's a problem, indexing wise, if I'm not mistaking. So if the language set in the url is the default language, do you redirect to the url without any language specification, thus "erasing" the "en/" part?
Regards,
-jj.
-
Nov 3, 2008, 05:40 #2
- Join Date
- Jun 2000
- Location
- Netherlands
- Posts
- 1,356
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
For my own sites I simply don't allow one to use just 'en' or such after the domain name, only as part of the full path to the resource (page).
In your case you could do a silent redirect, yes, which might solve the bot issue as well. Not sure, though.www.nyanko.ws - My web-, software- and game development company.
www.mayaposch.com - My personal site and blog.
-
Nov 3, 2008, 06:50 #3
- Join Date
- Jan 2005
- Location
- blahblahblah
- Posts
- 1,447
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Bookmarks