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.
- Set the page's own language on the <html> element (<html lang="en-GB">). Use hyphens in lang and hreflang values (en-GB, not en_GB), and keep og:locale in step with it (og:locale uses an underscore: en_GB).
- Make every hreflang URL absolute (https://example.com/fr/), and make sure each page lists itself plus an x-default entry.
Helpful tools
- Google Search Console → International Targeting
- Ahrefs Hreflang Checker
- hreflangvalidator.com
Not sure if this affects your site? Analyze your website for free or compare it with a competitor.
Related guides
- Write a proper page title: The single most important on-page SEO element: 50 to 60 characters that sell the click.
- Add a meta description: Your 150-character pitch shown under the title in search results.
- Use exactly one H1 heading: The H1 tells Google and visitors what the page is about. There should be one per page.
- Add alt text to images: Describe each image in a few words, for accessibility, SEO, and slow connections.