Search • Oct 10, 2026 • 4 min read

Hreflang for Multilingual Websites: A Practical Guide

Hreflang for Multilingual Websites: A Practical Guide

Hreflang tells Google which language or regional version of a page to show to which searcher. This guide covers when you need it, the rules Google documents, a working example, the mistakes that break it, and how to check your setup.

01What is hreflang?

Hreflang is an annotation that links the versions of the same page in different languages or for different regions. Google uses it to show searchers the version that matches their language or location.

Documented

Google says that subdomain or path names do not tell it who a version is meant for, so you must map each audience explicitly with annotations. Having /ru/ in a URL is not enough.

02Do you need hreflang?

For an exporter, the most common case is one product range explained in the languages of several target markets. See also [how to localize your website](/blog/localize-website/).

03The rules Google documents

Documented

These points come from Google Search Central's guide on localized versions.

  1. Every version lists itself and all the others. The set of annotations must be identical on each page.
  2. Links must be reciprocal. If page A points to page B, page B must point back to A, or Google may ignore the annotations.
  3. Use fully qualified URLs, including https://.
  4. Language code first, then optional region. Language uses ISO 639-1 (en, ru, zh), region uses ISO 3166-1 Alpha-2 (US, GB). A region code cannot stand alone.
  5. Script subtags are supported, such as zh-Hans and zh-Hant. Non-standard codes such as es-419 are not supported.
  6. Use x-default as a fallback for searchers whose language matches none of your versions. It takes no language code.

04Three ways to add hreflang

Google treats these as equivalent, so pick one and keep it consistent.

MethodBest forWhere it goes
HTML <link> tagsMost websitesIn the <head> of every page
HTTP Link headerNon-HTML files such as PDFsIn the server response
XML sitemapLarge sitesxhtml:link entries in the sitemap

05A working example

This is the markup on the VALTARIQ English home page. It lists four languages plus the fallback, and the Russian, Chinese and Malay versions carry the same set.

code
<link rel="alternate" hreflang="en" href="https://www.valtariq.com/">
<link rel="alternate" hreflang="ru" href="https://www.valtariq.com/ru/">
<link rel="alternate" hreflang="zh" href="https://www.valtariq.com/zh/">
<link rel="alternate" hreflang="ms" href="https://www.valtariq.com/ms/">
<link rel="alternate" hreflang="x-default" href="https://www.valtariq.com/">
Analysis

Using language-only codes is the simplest choice when each language targets one site audience. Add a region, such as en-GB, only when you publish genuinely different content for that region.

06Common mistakes

07How to check your setup

  1. Open the page source and search for hreflang. Confirm that every language version appears.
  2. Open each listed URL and confirm it points back to the first page.
  3. Check that every code is valid and every URL starts with https://.
  4. Submit your sitemap in Google Search Console and watch the indexing of each language version.

08Frequently asked questions

Does hreflang improve rankings?

Hreflang does not boost rankings directly. It helps Google show the right version to the right searcher, which reduces the chance that visitors land on a language they cannot read.

Is a language selector enough?

No. A visible selector helps visitors, but search engines need the annotations to understand how your versions relate.

Should I use subdomains, folders or separate domains?

Google allows alternate URLs on different domains and does not infer the audience from the structure. Choose the structure that fits your team and budget, then annotate it correctly. Folders such as /ru/ are the easiest to manage on one site.

What does x-default do?

It names the page to show when no listed language fits the searcher. It is usually the language selector or the main English page.

09Need a multilingual site that search engines understand?

VALTARIQ builds multilingual websites with the technical setup done correctly from the start. See our [website development service](/services/overseas-website-development/) or [contact us](/contact/) to discuss your target markets.

Source: Google Search Central, Tell Google about localized versions of your page.

Want results like this for your brand?

Tell us your market, product and goals. We will reply with a clear plan.

Keep reading
← All articles