Mobile app version of vmapp.org
Login or Join
Ravi8258870

: 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

@Ravi8258870

Posted in: #Multilingual #MultipleDomains #Redirects

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.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Ravi8258870

2 Comments

Sorted by latest first Latest Oldest Best

 

@Goswami781

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.

10% popularity Vote Up Vote Down


 

@Merenda212

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme