SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Wizard
    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.

  2. #2
    Fluffy Kitten Programmer~ Elledan's Avatar
    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.

  3. #3
    SitePoint Wizard
    Join Date
    Jan 2005
    Location
    blahblahblah
    Posts
    1,447
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Elledan View Post
    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).
    Could you develop your thinking? How do you do that? How do your urls look like?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •