Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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 have a problem with Google indexing our site in different languages using the alternate hreflang. It's a forum and every thread is translated in the background and based on the language, the user choose in his options, the original text is replaced by the one in the right language. So every User can write in his own language and the other users can still read it (somehow - I know it's not the best solution, but it was not my idea :D )

So - now we have the forum in many languages and of course we want the users form every language to find us via google.

So i created some php-files, which get the right language by php and not by javascript. So the head in the original file looks like this:

<link rel="alternate" hreflang="de" href="myurl/printthread.php?t=2967&lang=de"/>
<link rel="alternate" hreflang="en" href="myurl/printthread.php?t=2967&lang=en"/>
<link rel="alternate" hreflang="fr" href="myurl/printthread.php?t=2967&lang=fr"/>
<link rel="alternate" hreflang="es" href="myurl/printthread.php?t=2967&lang=es"/>

On this pages the language is shown in the right language based on the url not on the users choice so that google can index it.

But you guess it - For some reason it does not work. Google only saves the content from the original file - not the alternate files for the different languages :(

You have any idea?

share|improve this question

migrated from stackoverflow.com Mar 14 '13 at 17:42

This question came from our site for professional and enthusiast programmers.

up vote 1 down vote accepted

Google announced as part of this video that text that is automatically translated by a computer (machine translated) is webspam. Google does not want to index this content, and it will penalize sites that try to get machine translated text indexed.

If you do get text well translated by an actual human translator, you should put the translated text onto a new site. This can be either a new domain, new sub-domain, or even a new folder. Google does best at indexing different languages when it is set up as a different site. Google usually has problems identifying the language and indexing it correctly when a URL parameter is used like you have done. See: How should I structure my urls for both SEO and localization?.

share|improve this answer
Very helpful. Thank you very much. Didn't know that. – KddC Mar 15 '13 at 10:08

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.