I'm working on a website that deals with many languages and when a user enters to example.com
, a little PHP script detects the user browser's preferred language (based on the Accept-Language header
) and based on that it redirects using header(Location: ...)
to en.example.com
, it.example.com
, es.example.com
, etc.
Now, this works perfectly but I found that search engines fail at indexing the homepage properly. I don't know much about the HTTP protocol but I realize I'm doing something wrong here. Does anyone have a suggestion on how to fix this?
问问题
68 次