Prompt
How do I troubleshoot hreflang errors across country sites?
Latest observation
Troubleshooting hreflang errors across country sites usually comes down to checking 3 things: the tags themselves, the site architecture, and whether Google can actually crawl and trust the signals.
1) Verify the basic hreflang rules
Each localized page should:
- Reference itself
- Reference all alternate language/country versions
- Use valid hreflang codes, like:
en-usen-gbfr-fr
- Point to canonical, indexable URLs
Example:
<link rel="alternate" hreflang="en-us" href="https://example.com/us/page/" />
<link rel="alternate" hreflang="en-gb" href="https://example.com/uk/page/" />
<link rel="alternate" hreflang="fr-fr" href="https://example.com/fr/page/" />
<link rel="alternate" hreflang="x-default" href="https://example.com/" />
Common mistakes:
- Missing return links
- Wrong country/language code
- hreflang pointing to redirected, blocked, or non-canonical URLs
- Using different URL sets on each version
2) Check reciprocity
Google expects hreflang to be bidirectional.
If:
- US page links to UK page
Then:
- UK page must link back to US page
If one page is missing the reciprocal tag, the cluster can break.
3) Confirm canonical tags don’t conflict
A very common issue:
hreflangsays the page is a country variant- but
rel=canonicalpoints to a different locale or a generic page
Best practice:
- Each localized page should usually canonicalize to itself
- Only use cross-canonicals if you truly want one URL indexed instead of multiple variants
If canonical and hreflang disagree, Google often follows the canonical and ignores hreflang.
4) Make sure all hreflang URLs are indexable
Check that target URLs:
- Return 200 OK
- Are not blocked by
robots.txt - Are not
noindex - Are not behind geo-login or session restrictions
- Are not redirects
Run a crawl or use browser tools to confirm.
5) Validate language and region codes
Use correct ISO codes:
- Language: 2-letter lowercase (
en,fr,de) - Region: 2-letter uppercase (
US,GB,CA) - Combined:
en-us,en-gb,fr-ca
Do not use:
en-ukinstead ofen-gb- invalid codes like
uk-en
6) Check implementation method consistency
hreflang can be implemented via:
- HTML
<link>tags - HTTP headers
- XML sitemaps
Avoid mixing partial implementations unless they’re perfectly aligned. If you use sitemaps, confirm every alternate is present in the same hreflang cluster.
7) Look for URL mismatches
Sometimes hreflang errors are just tiny URL inconsistencies:
- http vs https
- www vs non-www
- trailing slash differences
- uppercase/lowercase path differences
- parameters added on one version only
All alternate URLs should match the exact preferred indexed URL.
8) Audit for missing pages in the cluster
Every version in a cluster should list all others. If you have:
- US
- UK
- Canada
Then all 3 should reference all 3, plus self-reference.
If one country page is missing, the cluster may be incomplete.
9) Use the right tools
Good tools for checking hreflang:
- Google Search Console: indexing issues, sitemaps, URL inspection
- Screaming Frog SEO Spider: hreflang reports and missing return tags
- Sitebulb
- Ahrefs / Semrush site audits
- Browser dev tools or page source inspection
10) Watch for x-default issues
x-default is optional, but useful for global selector or fallback pages.
It should:
- Point to a generic page or country selector
- Not conflict with locale-specific pages
- Be included consistently if used
11) Confirm the pages are actually equivalent
hreflang is meant for pages with equivalent intent/content in different locales. If one page is substantially different, Google may ignore the relationship.
12) Fix at scale with a crawl-first approach
If you have many country sites:
- Crawl all locale versions
- Export hreflang data
- Check:
- missing return links
- invalid codes
- canonical conflicts
- redirecting URLs
- non-200 URLs
- Fix templates or sitemap generation rather than individual pages where possible
Quick debugging checklist
For any page:
- Self-referencing hreflang exists
- All alternate URLs are listed
- Return links exist on all alternates
- URLs are canonical, final, indexable, 200 status
- Codes are valid
- Canonicals don’t contradict hreflang
- No robots/noindex/redirect issues
- Implementation is consistent across the site
If you want, I can also give you:
- a step-by-step hreflang audit workflow, or
- a template for diagnosing hreflang errors in Screaming Frog.