Hreflang and international · Hreflang annotations

Hreflang declared using multiple methods

This page declares its hreflang set twice: in link elements in the head and again in an HTTP Link header. Two methods can drift apart and conflict.

How this page is built

The head of this page has the usual three annotations. The server also sends the same three in a Link response header. Today both copies agree:

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

The US English version and the region picker declare the set in HTML only.

Why it matters

Search engines accept hreflang in HTML, in HTTP headers or in an XML sitemap. Using more than one method doubles the work and the risk. Sooner or later one copy is updated and the other is not, and the two lists conflict.

When they disagree, there is no rule for which one wins, so the result is hard to predict.

How to check it

View the source for link elements with a hreflang attribute, and check the response headers for a Link header with hreflang values. Crawl tools that read both report pages that use more than one method.

How to fix it

Pick one method for the whole site. HTML link elements suit most pages; HTTP headers suit files such as PDFs; sitemaps suit very large sites. Remove the other declarations.

Back to all tests