Hreflang Implementation
Hreflang is an HTML signal that tells search engines which URL version to show for a specific language or region.
- Also called
- rel alternate hreflang, language annotations
- Applies to
- Pages with equivalent content in multiple languages or regions
- Commonly confused with
- Canonical tags, redirects, geo-targeting in Search Console
Key points
- Hreflang helps Google serve the correct localized page and reduces wrong-language rankings.
- Every page in a hreflang cluster must link to every other variant, including itself.
- Use ISO 639-1 language codes and ISO 3166-1 Alpha-2 region codes, for example en-US.
- x-default provides a fallback page when no language or region matches the user.
- Hreflang is an algorithmic signal, not a directive, so indexing can still vary.
How it works
Hreflang tells search engines which URL to show for a specific language or region. Google supports three implementation methods: HTML <link> tags in the page head, XML sitemaps, and HTTP headers. Each method requires the same information: language code, optional region code, and the absolute URL of each variant.
Every page in a hreflang cluster must link to every other variant, and the links must be reciprocal. For example, an English page for the US must link to the French page for Canada, and the French page must link back. Self-referencing hreflang is required: each page includes a tag for its own URL. Use x-default for a fallback page when no language or region matches the user.
Hreflang is meant for pages with equivalent or closely matching content across locales, not for unrelated pages. URLs in hreflang annotations must be absolute and return a 200 status code; redirects or 404s break the signal. This signal is part of a broader international seo strategy that also includes hreflang tags and multi lingual seo considerations.
Common mistakes
- Missing reciprocal links between alternate pages: Google cannot confirm the relationship and may ignore the annotations.
- Omitting the self-referential hreflang tag on each page: the cluster is incomplete and the signal may fail.
- Using relative URLs, redirects, or non-200 URLs in hreflang annotations: search engines cannot resolve the intended URL.
- Mixing implementation methods inconsistently across the same cluster: annotations may conflict or be missed.
Sources
- Google Search Central: Localized Versions of your Pages Primary source for hreflang syntax, supported implementation methods, reciprocity, self-references, and x-default.
- Google Search Central: International and multilingual sites Official hub for international SEO guidance and localized site management.
- Moz: Hreflang Tag Guide Clear practitioner-oriented explanation of the tag and its implementation options.
- Ahrefs: Hreflang Guide Useful implementation walkthrough and examples for SEO teams.