Hreflang and Multilingual SEO: A Practical Implementation Guide

If your website serves customers in more than one country or language, hreflang is one of the most important and most frequently broken pieces of technical SEO. It tells search engines which version of a page to show to which audience: the English page for the United Kingdom, the Arabic page for Saudi Arabia, the French page for Belgium, the German page for Switzerland. When it works, each audience sees the right page. When it is missing or wrong, the wrong version ranks, pages compete with each other, and international growth stalls.
This guide explains what hreflang does, when you need it, how to implement it correctly, the most common mistakes, and how to check that it is working. It is written for marketers, business owners and developers responsible for multilingual or multi-regional websites.
What hreflang actually does
Hreflang is an annotation that links equivalent pages written for different languages or regions. It does not move a page up the rankings by itself. Instead, it helps search engines understand that several pages are alternatives of each other, and chooses the most appropriate one for each searcher based on their language and location.
Without hreflang, a search engine might show your US page to visitors in the UK, your English page to French speakers, or treat very similar pages for Australia and New Zealand as duplicates. With hreflang, it can serve the right version and consolidate signals across the set.
When you need hreflang
- Different languages: the same content in English, French, Arabic or Swahili.
- Same language, different regions: English pages tailored for the UK, US, Australia or Kenya, with different prices, spelling, contact details or legal information.
- Mixed setups: a site with English for international visitors, German for Germany and Austria, and French for France and Belgium.
If your site has only one language and serves everyone the same content, you do not need hreflang.
Choosing a site structure first
Before implementing hreflang, decide how international content is organised. The three common structures are:
- Country domains such as example.co.uk and example.de. Strong local signals, but more domains to maintain and authority split across them.
- Subfolders such as example.com/uk/ and example.com/de/. Easy to manage, shares authority across the domain and is the most common choice.
- Subdomains such as uk.example.com. Workable, but often treated more separately than subfolders.
For most organisations, subfolders on one strong domain are the simplest and most effective option. Avoid relying on automatic redirects based on IP address, which can stop search engines from seeing all versions.
How hreflang codes work
Hreflang values use a language code, optionally followed by a region code. The language uses ISO 639-1 (en, fr, de, ar, sw), and the region uses ISO 3166-1 alpha-2 (GB, US, DE, AE, KE).
enmeans English for any region.en-GBmeans English for the United Kingdom.ar-AEmeans Arabic for the United Arab Emirates.x-defaultis the fallback for users who do not match any listed version, often a language selector or international homepage.
A common error is using "en-UK" instead of "en-GB", or using a region code alone, such as "GB", which is invalid.
Three ways to implement hreflang
HTML link elements
The most common method places link elements in the head of each page. Each version lists itself and all alternatives:
<link rel="alternate" hreflang="en-gb" href="https://example.com/uk/services/" />
<link rel="alternate" hreflang="en-us" href="https://example.com/us/services/" />
<link rel="alternate" hreflang="de" href="https://example.com/de/leistungen/" />
<link rel="alternate" hreflang="x-default" href="https://example.com/services/" />
XML sitemaps
For large sites, hreflang can be declared in the sitemap, keeping page code lighter. Each URL entry lists its alternatives.
HTTP headers
For non-HTML files such as PDFs, hreflang can be sent in HTTP headers.
Choose one method and apply it consistently. Mixing methods increases the risk of conflicts.
The rules that matter most
- Return links are required. If page A lists page B as an alternative, page B must list page A. Missing return links cause search engines to ignore the annotation.
- Self-reference. Each page should include itself in its hreflang set.
- Use absolute URLs, including the protocol and domain.
- Link to canonical, indexable pages. Do not point hreflang at redirected, noindexed or blocked URLs.
- Keep canonicals consistent. Each language version should have a self-referencing canonical, not a canonical pointing to another language.
- Use valid codes for language and region.
Common hreflang mistakes
- Canonical tags on all versions pointing to the English page, which tells search engines to ignore the others.
- Missing return links after adding a new language.
- Hreflang pointing to URLs that redirect or return errors.
- Invalid codes such as en-UK or using country codes alone.
- Translated pages that are only partly translated, leaving English content on a French page.
- Automatic language redirects that hide versions from crawlers.
- Untranslated titles, descriptions and alt text.
Content still matters most
Hreflang solves a technical problem, but rankings in each market still depend on content quality. Machine translation without review often reads awkwardly and misses how local audiences search. The best approach is to research keywords in each language, adapt examples, prices and contact details, and have native speakers write or review content. For regional English versions, adjust spelling, currency, legal information and references.
How to check that hreflang works
- Crawl the site with an SEO crawler that reports hreflang errors, missing return links and non-indexable targets.
- Check Search Console performance by country to see whether the right pages appear in each market.
- Search from different locations or use location-specific tools to see which version appears.
- Monitor after changes, especially when adding languages or migrating platforms.
Hreflang for East African and Gulf markets
Many organisations in Kenya and the region serve multilingual audiences: English and Swahili for East Africa, English and Arabic for the Gulf, English and French for parts of Central and West Africa, English and Somali for Somali communities. A clear structure, for example example.com/sw/ for Swahili or example.com/ar/ for Arabic, combined with correct hreflang and native-language content, helps each audience find the right pages. Arabic pages also need right-to-left layouts and translated metadata.
A step-by-step implementation plan
- List the markets and languages you genuinely serve.
- Choose a structure, ideally subfolders on one domain.
- Map equivalent pages across versions in a spreadsheet.
- Implement hreflang using one method, with self-references and x-default.
- Set self-referencing canonicals on every version.
- Translate or adapt metadata, navigation and forms.
- Crawl, fix errors and submit sitemaps.
- Monitor performance by country and language each month.
A worked example
Imagine a Nairobi-based logistics company serving customers in Kenya, the UAE and Saudi Arabia. It decides to publish English content for Kenya and international visitors at example.com/, an English version for the UAE at example.com/ae/ with local contacts and dirham pricing guidance, and an Arabic version for Saudi Arabia at example.com/sa-ar/.
The services page exists in all three versions. Each version includes hreflang links to all three, with hreflang values of en-KE, en-AE and ar-SA, plus an x-default pointing to the main English page. Each page has a self-referencing canonical. The Arabic page has translated titles, descriptions, headings, navigation and forms, written by a native speaker who researched how Saudi buyers search. The UAE page uses local office details, local examples and relevant regulations. Over the following months, Search Console shows the UAE page appearing in UAE searches and the Arabic page in Saudi searches, instead of the Kenyan page appearing everywhere.
Hreflang during migrations and redesigns
Website migrations are a common moment for hreflang to break. URLs change, new languages are added and templates are rebuilt. Before a migration, export the current hreflang mappings. During development, ensure the new templates output hreflang correctly and that every alternative URL points to the new canonical address, not to redirected old URLs. After launch, crawl the site and monitor country performance closely for several weeks. A short checklist prevents months of lost international visibility.
Content management systems and plugins
Most popular platforms offer ways to manage hreflang. WordPress multilingual plugins, Shopify markets and many headless CMS setups can output hreflang automatically when pages are linked as translations. Automation helps, but it is not a guarantee. Plugins can misconfigure codes, miss pages that were not linked as translations, or conflict with SEO plugins that set canonicals. Always verify the output with a crawler rather than assuming the platform handles everything.
Measuring international success
Once hreflang is in place, measure performance by country and language rather than in aggregate. Search Console lets you filter by country, and analytics can segment traffic and conversions by language folder. Look for the right version appearing in each market, impressions growing for local queries, and enquiries arriving from target countries.
Frequently asked questions
Does hreflang improve rankings?
Not directly. It helps the right page appear for the right audience and reduces duplicate content issues, which improves international performance.
Do I need hreflang for UK and US English?
If the pages differ meaningfully, such as prices, spelling, contacts or legal information, hreflang helps. If they are identical, consider using one version instead.
What is x-default?
It is the fallback page for users who do not match any listed language or region, often a language selector or international homepage.
If you need help structuring an international website, see my international SEO guide, my SEO services, or get in touch for a technical audit.



