Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I developing a client's blog and he needs it to be bilingual (english and spanish). Now what he wants is that users can get to the content based on the domain e.g. John enters www.domain.com and he gets the english version and Juan enters www.elsenordominio.com to get the spanish version.

All content will be validated by PHP so the users and search engines only reads the domain related language.

What do I need to use header re-direct or 301? Is it bad for SEO? Will Google will penalize me?

I hope you guys can help me and forgive me if my english is not good.

share|improve this question
How are redirects involved with this? By your description, the user gets the localised version he's asking for (by typing the domain name). I'd suggest not to "force" the users to what you think is the best language for them, better offer a prominent link like "Hey, you're browser language is english, there's a english version of this page at..." – peterp Sep 25 '13 at 14:26

Set the DNS for both domains to point to the same server and use virtual hosts on that.

In PHP use $_SERVER['SERVER_NAME'] to see what domain is called and show the related language/content for that domain.

share|improve this answer

Don't trust 'accept-language' header - users often don't sets own language, left default 'en-us' and gets English version every time.

Google in multilangual sites suggest to use alternate link with hreflang: http://support.google.com/webmasters/bin/answer.py?hl=en&answer=189077.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.