Advanced SEO
International SEO & Hreflang

International SEO & Hreflang

International SEO involves optimizing your website so search engines can identify which countries and languages your content targets. The hreflang attribute is the primary tool for indicating language and regional variations of your pages.

International SEO Fundamentals

Language Targeting

Serving content in the user's preferred language

Country Targeting

Targeting users in specific geographic regions

URL Structure

Organizing URLs by language or region

URL Structure Options

Method Example Pros Cons
ccTLD example.de Clear geo-targeting signal Expensive, separate domains
Subdomain de.example.com Easy to set up May dilute authority
Subdirectory example.com/de/ Consolidates authority Weaker geo-signal
URL Parameter example.com?lang=de Simple implementation Not recommended for SEO

Understanding Hreflang

Hreflang tells search engines about the relationship between pages in different languages. It helps serve the right content to the right users.

<link rel="alternate" hreflang="en" href="https://example.com/page/" />
<link rel="alternate" hreflang="de" href="https://example.com/de/page/" />
<link rel="alternate" hreflang="fr" href="https://example.com/fr/page/" />
<link rel="alternate" hreflang="x-default" href="https://example.com/page/" />

Hreflang Syntax

Language Only
hreflang="en" hreflang="de" hreflang="es"

Use ISO 639-1 language codes

Language + Region
hreflang="en-US" hreflang="en-GB" hreflang="es-MX"

Add ISO 3166-1 country codes when needed

The x-default Tag

hreflang="x-default"

Used as a fallback when no other hreflang value matches the user's language. Typically points to your homepage or a language selector page.

Implementation Methods

HTML Head

Add link tags in the &lt;head&gt; section of each page.

Recommended
HTTP Headers

For non-HTML files like PDFs. Returned via HTTP response headers.

For PDFs/Files
XML Sitemap

Define hreflang in sitemap for large sites with many language variations.

For Large Sites

Hreflang Rules

  • Bidirectional links - If page A links to page B, page B must link back to page A
  • Self-referencing - Each page must include a hreflang pointing to itself
  • Absolute URLs - Always use complete URLs, not relative paths
  • Valid language codes - Use proper ISO language and country codes
  • Indexable pages only - Don't use hreflang on noindexed pages

Common Hreflang Mistakes

  1. Missing return links - Forgetting the bidirectional requirement
  2. Wrong language codes - Using "uk" for English (should be "en-GB")
  3. Missing self-reference - Not including the current page
  4. Pointing to redirects - Hreflang should point to final URLs
  5. Canonical conflicts - Canonical and hreflang pointing to different pages

Content Considerations

Translate
  • Body content
  • Navigation menus
  • Form labels and buttons
  • Meta titles and descriptions
  • Image alt text
Consider Localizing
  • Currency and pricing
  • Date and time formats
  • Contact information
  • Cultural references
  • Legal/compliance info

External Resources