Site AI Auditвід Internet Solutions

Hreflang Explained: SEO Basics for Multilingual Websites

31 серпня 2026 р.Час читання: 8 хвОснови SEO
Hreflang Explained: SEO Basics for Multilingual Websites

Short answer: Hreflang is an annotation that tells search engines which language or regional versions of a page exist, so they can show each searcher the version that fits their language and country. Each version needs its own URL, and every version must list all the others and itself, using correct language codes such as en, de or pt-BR. Add an x-default for visitors who match no version. Hreflang does not translate anything or improve rankings; it prevents the wrong version from appearing.

What problem hreflang solves

Imagine a company with English, German and French versions of its website. Without extra signals, a German speaker searching in German might see the English page in results, or a visitor in Canada might land on the version for France. Search engines usually work out languages on their own, but they can make mistakes, especially when versions are similar, such as English for the UK and English for the US, or when pages contain mixed languages.

Hreflang gives search engines a clear map: “this page exists in these languages and regions, at these addresses.” It helps them:

Hreflang is a signal, not a directive. Search engines use it together with other information, but when it is implemented correctly it is very effective.

Prerequisite: one URL per language version

Hreflang only works if each version has its own URL. Sites that switch language with a cookie or based on the visitor’s browser settings, while keeping the same URL, give search engines only one version to crawl, usually the default one. The common URL structures are:

StructureExampleNotes
Subfoldersexample.com/de/Easiest to manage, shares the main domain’s strength; most common choice
Subdomainsde.example.comWorks well, slightly more separate from the main site
Country domainsexample.deStrong country signal, but more domains to manage and build up
URL parametersexample.com/?lang=dePossible but not recommended; easy to break and hard for users

Whatever structure you choose, avoid automatically redirecting visitors to a language based on their IP address or browser. Search engine crawlers often come from one country and may never see the other versions. Offering a clear language switcher and, at most, a gentle suggestion banner is safer.

How hreflang is written

The most common method is a set of link elements in the <head> of each page. For a page available in English, German and French, every one of the three pages contains the same block:

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

Two other methods exist: HTTP headers, useful for PDFs and other non-HTML files, and entries in the XML sitemap, useful for large sites where editing page heads is impractical. Use one method consistently rather than mixing them. Google’s documentation on localized versions of your pages describes all three.

The rules that make hreflang work

  1. Every version lists every version. Each page includes hreflang links to all its alternates and to itself. The self-reference is required.
  2. Links must be reciprocal. If the English page points to the German page, the German page must point back to the English one. Search engines ignore one-way annotations, because anyone could otherwise claim to be an alternate of your pages.
  3. Use correct codes. The language code comes from ISO 639-1, such as en, de, lt, uk for Ukrainian. An optional region code from ISO 3166-1 alpha-2 can be added, such as en-GB, en-US, pt-BR. A region alone, such as gb, is not valid.
  4. Use absolute URLs. Full addresses including https://, pointing to live pages that return 200.
  5. Point to canonical URLs. Each hreflang URL should be the canonical version of that page, and each language version should have a self-referencing canonical, not a canonical pointing to another language.
  6. Add x-default. The x-default value names the page to show when no other version matches the searcher, often the main English page or a language selector.

Language vs language-and-region

You only need region codes when you actually have different versions for different countries in the same language. Some guidelines:

Do not create regional versions that are identical apart from the hreflang code. They add maintenance without helping anyone.

Common hreflang mistakes

Setting up hreflang on common platforms

You rarely need to write hreflang by hand. Most multilingual setups generate it:

Whichever platform you use, test one page per language after setup and after every plugin update. Generated hreflang is only as correct as the translation links and settings behind it, and a single wrong language code repeats across every page.

Translation quality still matters

Hreflang solves a technical problem. It does not make weak translations perform well. Machine-translated pages that nobody has reviewed may read awkwardly, use the wrong terms for your industry and fail to match how people in that language actually search. Keyword research should be done per language: the phrase people use in German may not be a literal translation of the English one.

Localise the details too: currency, units, date formats, phone numbers, delivery information and legal text. A page that is linguistically German but shows only UK delivery options will not satisfy German visitors.

How to check hreflang

  1. View the source of a page in each language and confirm the full set of alternates, including itself and x-default.
  2. Follow each hreflang URL and confirm it returns 200, is the canonical URL, and contains the matching return links.
  3. Crawl the site with a tool that reports hreflang, to find missing return links and broken targets across all pages.
  4. Check Search Console Performance data by country and page to see whether visitors land on the right versions.
  5. Re-check after changes, especially when adding a language or changing URLs in one language.

How Site AI Audit helps

Hreflang builds on the basics: pages that return 200, correct redirects, clean canonical signals and no accidental noindex. Site AI Audit checks those foundations across up to 50 pages on the free check, reporting broken links, redirects, titles, headings and indexing rules with a plain-language fix for each. Run a free check before and after adding a new language.

Related reading

The bottom line

Hreflang helps search engines show the right language and regional version of your pages. Give each version its own URL, make every page list all versions including itself, use correct language and region codes, point only to live canonical URLs, add x-default, and keep canonicals self-referencing. Then invest in genuine translation and localisation, because hreflang only sends visitors to the page; the page still has to serve them.

FAQ

Does hreflang improve rankings?

Not directly. It helps search engines show the right version of a page to each searcher, which improves relevance and user experience for international visitors.

Do I need hreflang if my site has only one language?

No. Hreflang is only needed when the same content exists in several languages or regional variants.

What is x-default in hreflang?

It names the page to show when a searcher’s language or region matches none of your versions. It often points to the main English page or a language selection page.

Can I use hreflang for pages that are only partly translated?

It is better to link only pages that are genuinely translated. Partly translated pages confuse visitors and may be treated as low quality in that language.

Should translated pages have canonical tags to the original?

No. Each language version should have a canonical pointing to itself. Hreflang, not canonical, connects the language versions.

#Duplicate content#Multilingual SEO#Technical SEO
Перевірте свій сайт — безкоштовно.Що виправити на вашому сайті — і з чого почати.
Почати безкоштовно

Ще з блогу

Усі статті →
Internet Solutions

Інші продукти нашої команди

Створено Internet Solutions. Спробуйте й інші наші продукти — кожен заощаджує час по-своєму.

internet-solutions.net ↗
01Автопостинг у соцмережі
PostRSS

Нові записи з вашого RSS-фіду автоматично публікуються у Facebook, X, LinkedIn, Telegram та ще 60+ мережах.

Безкоштовний тариф · з 2014Перейти →
02AI-чат для сайтів
Talkmio

Ваш сайт відповідає відвідувачам 24/7 на основі вашого контенту та їхньою мовою.

Безкоштовний тариф · без карткиПерейти →
03AI-асистент
Ask Mio

Чат, код, дизайн, тексти та дослідження. Mio добирає найкращу модель для кожного завдання.

Безкоштовний тарифПерейти →
04AI-автопілот для блогу й соцмереж
AI Blog Autopilot

AI пише SEO-статті на 2000–3000 слів і публікує кожну в 58+ соцмережах.

Перші 3 статті безкоштовноПерейти →
05Глибокий SEO-аудит
Site SEO AI Audit

Повне SEO-сканування за 7 напрямами, зокрема видимість в AI-пошуку, з виправленнями за силою впливу.

Перший аудит безкоштовноПерейти →
06RSS і товарні фіди
RSS Feed Creator

Створюйте RSS з будь-якої вебсторінки, а також товарні фіди для Google і Meta, що оновлюються самі.

Безкоштовний тарифПерейти →
07Розробка сайтів і SEO
Internet Solutions

Сайти, інтернет-магазини та індивідуальні системи — проєктує, створює й супроводжує наша команда.

З 2011Перейти →
Site AI Audit
Огляд конфіденційності

Цей сайт використовує cookie, щоб ми могли забезпечити вам найкращий користувацький досвід. Інформація cookie зберігається у вашому браузері й виконує такі функції, як розпізнавання вас під час повернення на сайт, а також допомагає нашій команді зрозуміти, які розділи сайту вам найцікавіші та найкорисніші.