Skip to content
SEO Evaluate
TREN (current language)ARFA
All posts
SEO5 min read

12 common hreflang errors and how to detect them

Most hreflang errors are systemic rather than page-level. The 12 most common ones, an ordered way to diagnose them with canonical signals and Search Console, and a small checker.

By

Summarize the article
12 common hreflang errors and how to detect them

Updated 18 November 2026: corrected the guidance on canonicals and x-default, added an ordered diagnosis, a worked example and a checklist. First published 27 August 2026.

Hreflang is one of the most frequently misconfigured areas of technical SEO. The reason is not its complexity; it is how quietly it fails. A broken setup produces no visible error on the page, so problems are often found late, when someone sees the wrong language version in search results or reads Search Console.

We covered how to build a multilingual architecture in the clinic vertical in our multilingual SEO architecture playbook. This piece is the companion to it: the 12 errors most often seen once the architecture is in place, an ordered way to diagnose them, and a small checker for one group of pages.

Reciprocity and grouping errors

The first four errors come back to the basic logic of hreflang: it is not a page tag, it is a group declaration.

1. One-way declaration. The TR page points to the EN page, but the EN page does not point back. Google lists missing return links among the common mistakes; annotations that are not confirmed from the other page may be ignored.

2. Missing self-reference. Google's documentation says each language version must list itself as well as all other language versions.

3. Missing member. The group has four languages, but some pages list only three. This usually comes from template differences: one template prints four languages while another stops at three.

4. Inconsistent group membership. Page A points to B and C, page B points to A and D. No consistent set emerges.

The common source of these four errors is usually the same: hreflang is produced template by template rather than from a single source of truth.

Code and URL errors

5. Invalid language code. Use ISO 639-1 language codes, optionally followed by an ISO 3166-1 alpha-2 region. For Arabic, "ar" is a language code; "ar-AE" is a language-region combination. "uk" means Ukrainian, not the United Kingdom (the region code for the United Kingdom is "GB", as in "en-GB").

6. A region code on its own. An hreflang value cannot be a country code without a language code.

7. Relative URLs. Hreflang URLs must be fully qualified, including the protocol. Relative paths often survive unchanged from staging to production.

8. Pointing to redirected or unusable URLs. The annotated URL should be the final address that returns 200. In practice, an annotation that points to a redirect, a 404, a noindex page or a page blocked by robots.txt cannot do its job for that language.

Conflicting signals

The last four errors are the hardest to spot, because the hreflang markup itself can look correct.

9. Canonical conflict. The Arabic page declares itself the Arabic version through hreflang, while its canonical points to the English page. A canonical tag is a strong signal of the preferred URL (Google still chooses the canonical itself), so this declares the translation a duplicate of the English page and works against hreflang. For genuine translations, Google's guidance is to specify a canonical in the same language; a self-referencing canonical on each translation is the usual pattern.

10. Automatic redirection. A forced redirect based on IP address or browser language can keep crawlers from reaching some versions. We described the mechanism and a short test in our piece on locale auto-redirects.

11. Page language that does not match the declaration. Hreflang says "fa" while the body is largely English. Google determines a page's language from its content; it does not use hreflang or the HTML lang attribute for that.

12. Misusing x-default. x-default marks a fallback page for users whose language does not match any listed version, often a language selector; it does not mean "the most important language". It is optional, and Google recommends it where a sensible fallback exists. In practice, different x-default URLs on different members of the same group send conflicting signals; leaving x-default out is not an error in itself.

An ordered diagnosis

A list of errors is easier to use with an order. For one group of equivalent pages at a time, check:

  1. Status. Every locale URL returns 200 without a redirect. Record any redirects and use the final URL everywhere.
  2. Crawling and indexing permissions. robots.txt allows the path, and there is no noindex in a robots meta tag or X-Robots-Tag header. A URL blocked by robots.txt is not fetched, so a noindex on it is never seen.
  3. Canonical signals. Each translation's canonical points to itself, not to another language. A missing canonical tag is a gap in your signals, not proof that a page cannot be indexed.
  4. Reciprocal hreflang. Each page lists itself and every other member, with fully qualified URLs, and every target links back.
  5. Sitemap alternates, if used. They match the HTML annotations exactly.
  6. Search Console. For one URL per language, read the indexing status, the user-declared canonical and the Google-selected canonical in URL Inspection.

Keep three kinds of evidence apart. The initial HTTP response (curl, or a crawler that does not render) shows status codes and the tags the server sends. The rendered page shows the DOM after JavaScript runs; Google renders JavaScript and indexes the rendered HTML, so tags added client-side are not invisible to Google, but a non-rendering fetch will not see them. Google's own record comes only from Search Console. A URL Inspection live test shows whether a page might be indexable, but it does not tell you which URL Google will choose as canonical, and "Indexing requested" means a crawl was requested, not that the page is indexed.

A checker for one group of pages

The companion script hreflang_check.py (Python 3 standard library, no dependencies) starts from one URL and reads the hreflang annotations in the initial HTTP response. It checks that:

  • the start URL returns 200 without a redirect and has at least one hreflang annotation;
  • the start page lists itself;
  • every target returns 200 without a redirect, links back to the start URL and lists itself (return links are checked to the start URL only, not between every pair of targets, so run it from each language version);
  • neither the start page nor any target is noindex, including "none" (all robots meta tags and X-Robots-Tag headers are combined, so a later permissive tag does not cancel an earlier noindex);
  • any declared canonical on the start page or a target points to that page itself. In a group of genuine translations, a canonical pointing elsewhere, for example to the English page, is reported as a problem. The x-default target is exempt from this canonical check, because it is often a shared fallback page;
  • a missing x-default is reported as a note only.

Exit code 0 means none of these checks found a problem. 1 means at least one did. 2 means the group could not be checked, because the start URL failed to load, did not return 200 or had no annotations. A pass means only that these checks found no problem; it is not proof of indexing, of the canonical Google selects or of complete hreflang correctness, and it does not replace the checklist below. The script does not render JavaScript, read hreflang from Link headers or sitemaps, check robots.txt, read crawler-specific meta tags or validate language codes. Run it as: python3 hreflang_check.py followed by the start URL, for example python3 hreflang_check.py https://www.example.com/en/about

Download the script: hreflang_check.py (Python 3, standard library only, 8.5 KB).

Example: SEO Evaluate's About pages

This example uses our own general About page group and shows HTTP responses only. It makes no claim about indexing or rankings.

On 14 November 2026 at about 13:28 Istanbul time, https://www.seoevaluate.com/en/about returned 200 with a self-referencing canonical and five hreflang annotations: tr (the Turkish page at /hakkimizda), en, ar, fa, and x-default pointing to the Turkish page. The Turkish page returned the same five annotations and its own canonical. The English-slug paths /fa/about and /ar/about returned 307 redirects to the localized slugs; those pages returned 200 with right-to-left markup, their own canonicals and the same annotations. The apex host returned 308 to the www host. The sitemap fetched at the same time listed the same alternates for /en/about and did not include the redirecting English-slug paths.

Later the same day, the checker started from /en/about read five annotations and reported every target as 200, linking back, listing itself, self-canonical and not noindex.

The live sitemap had 995 entries at the first observation and 999 later that day, after new pages were added. Search Console reported 981 discovered pages from its last read of the sitemap on 6 November 2026. These counts come from different times and processes, so the difference is not evidence of lost pages.

Why Search Console is not enough on its own

Search Console shows what Google has crawled and processed, so a systematic error in a newly launched language version can stay invisible until those URLs are processed. Its reports also tell you that a page has a problem, not which template produced it, and most of the twelve errors are template errors. Treat Search Console as Google-side confirmation over time, and your own crawl as the way to find errors before release.

Delivering hreflang through an XML sitemap instead of page tags can reduce template sprawl on large sites. It does not fix the errors by itself, but it makes a single source of truth easier to establish.

Detection in production: three layers

  1. Crawl. Extract the hreflang annotations of every URL. If the tags are added client-side, use a rendering crawler; otherwise the initial HTML is enough and faster.
  2. Graph validation. Treat the results as a directed graph: every edge has its counterpart, every node includes itself, every group has the expected number of languages, language codes are valid and targets return 200.
  3. Conflict check. Compare each URL's hreflang with its canonical, its lang attribute and its sitemap entry. Each mismatch is a finding.

Hreflang is not fixed once. New templates, new languages and migrations create new breaking points, so validation belongs in the release flow rather than in an occasional audit.

A practical order for fixing what you find: conflicting signals (9 to 12) first, then code and URL errors (5 to 8), then group structure (1 to 4). Otherwise a corrected group structure can still look broken because of a conflicting canonical.

If you would like help with your own setup, see our technical SEO service or get in touch.

Checklist

  • The group of equivalent pages is listed from the routing source before fetching
  • Every locale URL returns 200 directly, and the final URL is used in canonicals, hreflang and sitemaps
  • robots.txt allows the paths; no noindex in a robots meta tag or X-Robots-Tag
  • If the tags depend on JavaScript, they are checked in the rendered DOM and in URL Inspection
  • Each translation's canonical points to itself, not to another language
  • Each page lists itself and every other member, with fully qualified URLs
  • Every target links back
  • Language codes are ISO 639-1, with optional ISO 3166-1 regions and no region-only values
  • x-default, if used, is the same fallback URL on every member
  • No hreflang target redirects, returns 404 or is noindex
  • Sitemap alternates match the HTML
  • Live sitemap counts are kept separate from Search Console's last-read counts
  • URL Inspection is run for one URL per language, and the user-declared and Google-selected canonicals are recorded with the date
  • "Indexing requested" is recorded as a request, not an outcome

Sources

// CONTACT

Drop a brief.

Our intro call is free. Once we have your brief, we'll map the market opportunity and your highest-priority growth opportunities.