When a site serves people in several languages or countries, search engines face a new question: of the versions of this page, which one should this searcher see? A Spanish speaker in Mexico, an English speaker in the UK, and an English speaker in Australia might each need a different URL. International SEO is about building those versions so they're clearly separate, and annotating them so search engines can match each searcher to the right one.
This lesson builds on canonicalization (lesson 7) and site architecture (lesson 8). Most international problems are canonical problems in disguise.
International targeting: language versus region
Start by being precise about what varies:
- Language: the same offering in different languages (
en,es,de). A software documentation site often only needs this. - Region: different offerings per country, even in the same language: prices, currency, shipping, legal terms, product range (
en-US,en-GB,en-AU). - Both: an online shop selling in Germany, Austria, and Switzerland in German, plus Switzerland in French.
Only create regional variants when the content genuinely differs for that region. Three English pages with identical text and different flags add duplication without helping anyone.
Language-specific URLs
Each language or regional version needs its own URL. Search engines can't index two languages served at the same address based on cookies or browser settings. The common structures:
- Country-code top-level domains (ccTLDs):
example.de,example.fr. The strongest signal of a country target, but each domain builds its own reputation, and they cost more to run. - Subdirectories on one domain:
example.com/de/,example.com/fr-ca/. Easiest to maintain; all versions share the domain's history. The most common choice. - Subdomains:
de.example.com. Workable, slightly more separation, more infrastructure. - URL parameters:
example.com/?lang=de. Not recommended: easy to lose in links and harder to manage.
Google's former International Targeting report (which set a country for a property) was retired in 2022, so geotargeting now comes from the ccTLD, hreflang, and the content itself (local addresses, currency, language).
Avoid automatic redirects by location or language
Redirecting visitors automatically based on IP address or the browser's Accept-Language header causes problems for search engines: Googlebot crawls mostly from US IP addresses, usually without Accept-Language, so it may only ever see one version. Instead, serve the version the URL asks for, and offer a clear, dismissible suggestion ("View this page in Deutsch?") with links to the other versions. Let people choose and remember their choice.
hreflang: telling search engines about alternates
hreflang annotations list the language and regional versions of a page. They don't change rankings; they help search engines swap in the right version for each searcher among pages that would rank anyway.
Each annotation pairs a URL with a language code (ISO 639-1, such as en, es, zh), optionally followed by a region code (ISO 3166-1 alpha-2, such as US, GB, MX). A script code (ISO 15924) can distinguish writing systems, such as zh-Hant and zh-Hans. A region on its own isn't valid, and the region for the United Kingdom is GB, not UK.
Method 1: HTML link elements
In the <head> of every version, list all versions, including itself:
<!-- On https://www.example.com/en-us/pricing/ (and identically on each other version) -->
<link rel="alternate" hreflang="en-US" href="https://www.example.com/en-us/pricing/">
<link rel="alternate" hreflang="en-GB" href="https://www.example.com/en-gb/pricing/">
<link rel="alternate" hreflang="es" href="https://www.example.com/es/precios/">
<link rel="alternate" hreflang="de" href="https://www.example.com/de/preise/">
<link rel="alternate" hreflang="x-default" href="https://www.example.com/pricing/">x-default names the fallback for searchers who don't match any listed language or region, often a language-selector page or the international English version.
Method 2: HTTP headers
For non-HTML files such as PDFs, send the same information in a Link header:
Link: <https://www.example.com/en/guide.pdf>; rel="alternate"; hreflang="en",
<https://www.example.com/de/leitfaden.pdf>; rel="alternate"; hreflang="de"Method 3: XML sitemaps
For large sites, sitemaps keep annotations out of every page's HTML. Each <url> lists all alternates, including itself:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>https://www.example.com/en-us/pricing/</loc>
<xhtml:link rel="alternate" hreflang="en-US" href="https://www.example.com/en-us/pricing/"/>
<xhtml:link rel="alternate" hreflang="en-GB" href="https://www.example.com/en-gb/pricing/"/>
<xhtml:link rel="alternate" hreflang="es" href="https://www.example.com/es/precios/"/>
<xhtml:link rel="alternate" hreflang="x-default" href="https://www.example.com/pricing/"/>
</url>
<url>
<loc>https://www.example.com/en-gb/pricing/</loc>
<xhtml:link rel="alternate" hreflang="en-US" href="https://www.example.com/en-us/pricing/"/>
<xhtml:link rel="alternate" hreflang="en-GB" href="https://www.example.com/en-gb/pricing/"/>
<xhtml:link rel="alternate" hreflang="es" href="https://www.example.com/es/precios/"/>
<xhtml:link rel="alternate" hreflang="x-default" href="https://www.example.com/pricing/"/>
</url>
<url>
<loc>https://www.example.com/es/precios/</loc>
<xhtml:link rel="alternate" hreflang="en-US" href="https://www.example.com/en-us/pricing/"/>
<xhtml:link rel="alternate" hreflang="en-GB" href="https://www.example.com/en-gb/pricing/"/>
<xhtml:link rel="alternate" hreflang="es" href="https://www.example.com/es/precios/"/>
<xhtml:link rel="alternate" hreflang="x-default" href="https://www.example.com/pricing/"/>
</url>
</urlset>(The x-default page would get its own <url> entry with the same set.) Use one method per page set. Mixing methods is allowed but makes errors more likely.
The rules that make hreflang work
- Return links are required. If page A lists page B as an alternate, page B must list page A. Annotations without a return link may be ignored. This is the most common error.
- Every version lists itself.
- Use absolute URLs that return
200and are indexable: not redirects, notnoindex, not blocked. - Use the canonical URL of each version in the annotations.
- Generate annotations from data. Maintain one table of which pages are translations of which, and render all annotations from it. Hand-maintained hreflang on hundreds of pages always drifts.
Language and regional variants
Combine language-only and regional codes to cover fallbacks. If you have es-MX and es-ES pages plus a generic es page, a Spanish speaker in Argentina matches es. Without a generic es page, they may get either regional version, or the x-default.
Canonical interactions
Each language version is a distinct page, so it should be self-canonical:
<!-- On https://www.example.com/es/precios/ -->
<link rel="canonical" href="https://www.example.com/es/precios/">
<link rel="alternate" hreflang="es" href="https://www.example.com/es/precios/">
<link rel="alternate" hreflang="en-US" href="https://www.example.com/en-us/pricing/">Never point the canonical of a translated page at another language. That tells search engines the Spanish page is a duplicate of the English one, and the Spanish page can drop out of the index, taking hreflang with it.
Regional variants in the same language with nearly identical content (say en-US and en-GB differing only in currency) may be treated as duplicates and clustered under one canonical. hreflang still helps search engines show the right URL, but the more the pages genuinely differ (prices, spelling, shipping, contact details), the more clearly they stand as separate pages.
Localized metadata
Translate and localize every element search engines and searchers read: title, meta description, headings, URL slugs where sensible (/es/precios/), image alt text, structured data values (prices with the right priceCurrency, addresses, phone numbers), and internal link anchors.
Set the document language for accessibility and browsers:
<html lang="es">Google says it determines a page's language from its visible content rather than from the lang attribute, but other search engines and assistive technology do use it, so set it correctly.
Translated content quality
Machine translation has improved enormously and can be a good starting point. Google's guidance focuses on quality rather than method: content translated automatically without human review, published in bulk to target searches, can fall under its spam policies on scaled content. Review translations with native speakers, localize examples and units, and translate the whole page, not only the navigation. A page with a translated menu and English body text gives searchers a poor experience and sends mixed language signals.
Country-specific considerations
- Local signals: currency, local addresses and phone numbers, local payment methods, shipping information, and country-specific legal pages help both users and search engines.
- Local search engines: Google dominates many markets, but not all. Naver (South Korea), Baidu (China), Yandex (Russia), and Seznam (Czech Republic) have their own guidelines and tools.
- Legal and hosting constraints: some markets have data-residency or licensing requirements that affect where and how you host.
- Server location matters little for search today; CDNs make performance similar everywhere.
Common mistakes: international SEO errors
- Missing return links between versions.
- Invalid codes:
en-UK,es-LA, or a region on its own (hreflang="US"). - Canonical tags pointing all languages at the English page.
- hreflang URLs that redirect, return
404, or arenoindex. - Automatic IP or language redirects that hide versions from crawlers.
- Partially translated pages, or translated pages linking to the other language's URLs.
- Annotations only on the homepage, not on every page that has alternates.
Monitoring international performance
Once versions are live, check that each market actually gets its own version:
- In Search Console's Performance report, filter by country and look at the pages tab. Searchers in Mexico should mostly land on
/es-mx/URLs, not/es-es/or the English pages. A large share of the "wrong" version for a market usually means missing return links, a cross-language canonical, or regional pages that are too similar to tell apart. - Use URL Inspection on each version to confirm it's indexed and that the Google-selected canonical is the version itself, not a sibling in another region.
- If you use separate properties per subdirectory or subdomain, compare their Page indexing reports; one language with far fewer indexed pages than the others often points to a template or translation gap.
- Watch your server logs (lesson 11) to confirm crawlers request every language version, not just the default one, especially if you've ever used automatic redirects.
Expect some overlap. Search engines may still show a different version when they think it's more relevant, for example an English page for an English query typed in Germany. hreflang is a strong hint, not a rule.
Step by step: audit hreflang on a page set
- Pick one page and collect its annotations from the HTML, headers, or sitemap.
- For every URL listed, fetch it and confirm
200, self-canonical, indexable. - Fetch each alternate's own annotations and confirm it lists the original back (the return link) and itself.
- Validate every code against ISO 639-1, ISO 3166-1 alpha-2, and ISO 15924 for scripts.
- Check that
x-defaultexists where you want a fallback and points to a sensible page. - Search from different regions (Search Console's Performance report can be filtered by country) to confirm the expected URL appears for each market.
Practice with RankMiso. Steps 2 and 3 are tedious by hand, and crawlers with hreflang reports automate them. For spot-checking one page set, the International section of RankMiso (our free extension) lists a page's hreflang tags, and in Chrome its site check asks each alternate on the same host whether it links back. Free on the Chrome Web Store (opens in a new tab).
Key takeaways
- Give each language or regional version its own URL; prefer subdirectories or ccTLDs, and avoid parameters.
- Don't auto-redirect by location or language; suggest, and let people choose.
- hreflang must be reciprocal, self-referencing, absolute, valid, and point at indexable canonical URLs.
- Each language version is self-canonical; never canonicalize across languages.
- Localize everything people read, including metadata and structured data, and review translations.
Exercise
Design the international setup for a product page offered in US English, UK English, and Spanish for Mexico and Spain, with a generic Spanish fallback:
- Choose a URL structure and write the five URLs.
- Write the complete set of
<link rel="alternate" hreflang>elements for one page, includingx-default. - Write the canonical tag for each version.
- List what content must differ between
en-USanden-GB, and betweenes-MXandes-ES, to make each version worth having. - Describe how you'd verify the return links across all versions.
References
- Google Search Central: Tell Google about localized versions of your page (opens in a new tab)
- Google Search Central: Managing multi-regional and multilingual sites (opens in a new tab)
- Google Search Central: Spam policies (scaled content abuse) (opens in a new tab)
- W3C Internationalization: Declaring language in HTML (opens in a new tab)
- MDN: The lang global attribute (opens in a new tab)
What's next
You now have the technical tools for sites of any size and reach. The final lesson asks the question that decides which of them to use: what's actually working? Advanced SEO Measurement, Experimentation, and Strategy covers KPIs, testing, and how to prioritize and report honestly.

