Hreflang and international · Hreflang targets

Hreflang to a disallowed URL

This page's hreflang points at a US English version that robots.txt blocks, so crawlers cannot fetch it or confirm its return link.

How this page is built

The head of this page has a complete set of three annotations:

  • en-GB: this page
  • en-US: the US English version
  • x-default: the region picker

The site's robots.txt file has a Disallow rule for the US English version, so crawlers that obey it never read that page.

Why it matters

Search engines must crawl each alternate to confirm that it links back. A URL blocked by robots.txt cannot be crawled, so its return link is never seen and the pair may be ignored. The blocked page can also be indexed without its content, showing a bare URL in results.

How to check it

Test each hreflang URL against robots.txt. Crawl tools report hreflang URLs that are disallowed.

How to fix it

Allow crawling of every page in a hreflang set. If the page should not be indexed, remove it from the set instead of blocking it.

Back to all tests