Skip to content

How to set up hreflang for multilingual sites

SEO1 min readFixes 3 checks hreflang-return-links, hreflang-valid-pairs, hreflang-alternates-reachable

hreflang tags tell Google which language and country each version of a page serves. They must be reciprocal and include the page itself.

Step by step, with screenshots: hreflang in sitemaps vs in HTML: pick one and keep it consistent →

Check your own site

Runs these 3 checks and the other 184, free, in about 45 seconds.

What a passing site looks like

  • Every hreflang alternate links back to this pagewarning · −1.5 ptseffort M
  • hreflang tags are complete and validwarning · −1.5 ptseffort M
  • Every hreflang alternate returns HTTP 200warning · −1 ptseffort S

2. hreflang tags are incomplete or invalid

Why it matters. hreflang tells Google which language or country version to show each searcher. A missing self-reference or an invalid code makes the whole set ignored, so visitors land on the wrong version.

How to fix it.
  1. Use valid codes (language, optionally a region; for example "en", "en-GB", "de-AT") and at most one "x-default".
  2. Include this page's own URL in its hreflang set, and list the same set on every version.

3. hreflang alternates status

Why it matters. An alternate that answers 404 or redirects is dropped from the hreflang set, and the whole set can be ignored. Old language versions are often removed without updating the tags.

How to fix it.
  1. Point each hreflang entry at a live URL that answers 200 directly (no redirect).
  2. Remove entries for language versions you no longer publish.

Filed under Technical SEO. Copy is generated from the same catalogue that scores every report, so what you read here is what the report says.