I am trying to add herflang in my website, but I got some errors on google search console.

URLs for your site and alternate URLs in 'zh-Hans-CN' that do not have return tags 
URLs for your site and alternate URLs in 'zh-Hant-TW' that do not have return tags 
URLs for your site and alternate URLs in 'en-US' that do not have return tags

I don't have specific urls for different language, but I do use I18n to display different languages.

According to this document, I add following code into <head> element.

<link rel="alternate" href="https://www.example.com/" hreflang="zh-Hant-TW">
<link rel="alternate" href="https://www.example.com/" hreflang="zh-Hans-CN">
<link rel="alternate" href="https://www.example.com/" hreflang="en-US">

I only add above code in my landing page, should I add it in all pages?

2 Answers 2


You should have different URL for different language, that is how Google know your all alternative pages with different languages.

You're doing same mistake like this guy did.


I do not think you can do want you are hoping to do. It needs to be an actual translation with its own directory at minimum. It is all there in the link you shared.

So even if you were able to make a second translation, if generated it will not be effective. Pseudo Translations come with far too many errors and is also not considered a good version of the language.

On top of that. From Google.

Q: Can I use automated translations?

A: Yes, but they must be blocked from indexing with the “noindex” robots meta tag. We consider automated translations to be auto-generated content, so allowing them to be indexed would be a violation of our Webmaster Guidelines.

I am sorry.

  • I am confused about actual translation, is that mean I can't only use i18n? I need to create a specific language page for each of en, tw and cn, right?
    – rj487
    Nov 15, 2016 at 7:08
  • Yes that is correct. You can use it on your website but not as an official translation and Google will not recognize it as one. The only way it can work with i18n is if all formatting is stripped so it minimizes errors in auto translated content. Then you still have to have a separate directory for the language and point to that Url.. Nov 15, 2016 at 7:13
  • Thanks, so probably only different landing page is fine.
    – rj487
    Nov 15, 2016 at 7:17
  • Yes, that is correct, and making sure there is a clear link back to the original language page. You are welcome. Nov 15, 2016 at 7:36
  • I was wondering that if query string works or not? Like www.example.com/?lang=en.
    – rj487
    Nov 15, 2016 at 8:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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