Implement hreflang for international pages
Tell search engines which language/region version of a page to show each visitor.
What it means
Hreflang is an HTML attribute that tells Google which version of a page targets which language and country. Without it, Google may show the wrong language version in search results — showing your English page to French users, for example.
Why it matters
Incorrect or missing hreflang causes duplicate content penalties and sends the wrong language version to the wrong users, increasing bounce rate. It is the single most impactful technical fix for internationally-targeted sites.
How to fix it
- Decide your URL structure: separate domains (fr.example.com), subdirectories (/fr/), or subdomains are all valid — subdirectories are easiest to manage.
- Add hreflang link tags in the <head> of every page variant, including a self-referencing tag: <link rel="alternate" hreflang="en" href="https://example.com/page" />
- Always include an x-default tag for the fallback language: <link rel="alternate" hreflang="x-default" href="https://example.com/page" />
- Every page in the cluster must link to every other page — hreflang is bidirectional and breaks silently if any side is missing.
- Validate using Google Search Console (International Targeting report) or the hreflang validator at ahrefs.com/hreflang.
- If you have many pages, implement hreflang via the XML sitemap instead of the HTML head — it scales better and is equally supported by Google.
Helpful tools
- Google Search Console → International Targeting
- Ahrefs Hreflang Checker
- hreflangvalidator.com