Last updated
SEO Impact of Hreflang
- Prevents duplicate content penalties for multilingual sites
- Ensures users see the correct language version in search results
- Improves click-through rates by showing relevant regional content
- Allows different regional pages to rank independently in their target markets
- Reduces bounce rate by serving users content in their language
- Required for sites targeting multiple countries with the same language (e.g., US vs UK English)
Examples
Example 1: Basic Multilingual Site (3 Languages)
Site with English, French, and German versions:
<!-- Add to <head> of EVERY page in the group -->
<!-- On the English page (https://example.com/en/about) -->
<link rel="alternate" hreflang="en" href="https://example.com/en/about" />
<link rel="alternate" hreflang="fr" href="https://example.com/fr/about" />
<link rel="alternate" hreflang="de" href="https://example.com/de/about" />
<link rel="alternate" hreflang="x-default" href="https://example.com/en/about" />
<!-- On the French page (https://example.com/fr/about) -->
<link rel="alternate" hreflang="en" href="https://example.com/en/about" />
<link rel="alternate" hreflang="fr" href="https://example.com/fr/about" />
<link rel="alternate" hreflang="de" href="https://example.com/de/about" />
<link rel="alternate" hreflang="x-default" href="https://example.com/en/about" />
Example 2: Multi-Regional (Same Language, Different Regions)
English site with US, UK, and Australian versions:
<!-- On the US English page -->
<link rel="alternate" hreflang="en-US" href="https://example.com/us/" />
<link rel="alternate" hreflang="en-GB" href="https://example.com/uk/" />
<link rel="alternate" hreflang="en-AU" href="https://example.com/au/" />
<link rel="alternate" hreflang="x-default" href="https://example.com/us/" />
Use cases for regional variants:
en-US: US pricing, US spelling, US legal disclaimers
en-GB: UK pricing (£), British spelling, UK legal disclaimers
en-AU: AU pricing (A$), Australian spelling, AU legal disclaimers
Example 3: Language + Region Combinations
E-commerce site targeting multiple markets:
<link rel="alternate" hreflang="en-US" href="https://shop.example.com/us/" />
<link rel="alternate" hreflang="en-GB" href="https://shop.example.com/uk/" />
<link rel="alternate" hreflang="en-CA" href="https://shop.example.com/ca/" />
<link rel="alternate" hreflang="fr-FR" href="https://shop.example.com/fr/" />
<link rel="alternate" hreflang="fr-CA" href="https://shop.example.com/fr-ca/" />
<link rel="alternate" hreflang="de-DE" href="https://shop.example.com/de/" />
<link rel="alternate" hreflang="de-AT" href="https://shop.example.com/at/" />
<link rel="alternate" hreflang="es-ES" href="https://shop.example.com/es/" />
<link rel="alternate" hreflang="es-MX" href="https://shop.example.com/mx/" />
<link rel="alternate" hreflang="ja-JP" href="https://shop.example.com/jp/" />
<link rel="alternate" hreflang="x-default" href="https://shop.example.com/us/" />