: Two different domain for specific languages pointing to one site 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
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 domain.com and he gets the english version and Juan enters 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.
More posts by @Ravi8258870
2 Comments
Sorted by latest first Latest Oldest Best
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.
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: support.google.com/webmasters/bin/answer.py?hl=en&answer=189077.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.