concrete5/addon_internationalization — pull request #58 by fabian (2014-07-13 12:58:09+00:00)
Title: Send a 301 HTTP status

We have a bilingual website running with concrete5 and I've analyzed the way it's indexed by the Googlebot. The website has two home pages at `/en/` and `/pt/`. The root `/` redirects to one of them depending on the users browser (with `/en/` as fallback).

Now I've noticed the Googlebot indexes the `/en/` page as `/` and doesn't parse the structured data on `/en/`.

To improve SEO I would propose to do a `301 Moved Permanently` redirect instead of a `302 Moved Temporarily`. This makes the Googlebot realize, that the actual content is at `/en/` and the "[link juice](http://moz.com/blog/an-seos-guide-to-http-status-codes)" gets passed to `/en/`.

The only problem I could see is if a user changes his preferred locale and the browser keeps redirecting the root page to the old locale. Maybe we could do a `301` redirect only for the fallback locale?

Thoughts?