Skip to content

Zend Locale Default Language #59

@moosh74

Description

@moosh74

Zend Locale return "en" by default if no Accept-Language is empty or not detected.

It's a problem typically for Search Engines because they don't send any Accept Language code, so they are automatically redirected to "en" section if this section exist.

But, I think GoogleBot and others search engines bots must be redirected to DEFAULT_LANGUAGE to avoid this problem.

You can reproduce this issue like that :

  • Create a multilanguage website with 2 languages. e.g. FR and EN
  • Make FR the default language
  • Check "Attempt to use visitor browser language"
  • Check "Redirect home to default language"

After a while, you will see in google search results by typing "site:yourdomain.com" that the root domain display the EN meta title and description, while we defined FR as default language.

You can check too in Google Webmaster Tools with "Fetch as Google" and you will see that google is redirected to the EN version of your website.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions