Free, independent guides since 2010

SEO

Hreflang and multilingual SEO explained

How to set up a multilingual or multi-country website for search: URL structures, hreflang annotations with examples, x-default, common mistakes and how to test them.

<guide section="SEO" type="article" read="1 min"/>

In Belgium, many sites need Dutch, French and often English. Search engines must understand which version to show to whom. That is the job of hreflang. Our older article on ranking in country-specific search engines covers the background; for the translation work itself, see translating your website with AI.

URL structure

Give each language its own URL – usually subfolders like /nl/ and /fr/. Do not switch languages on the same URL based on cookies or browser settings: search engines would see only one version. See subdomains or subfolders.

Hreflang annotations

HTML
<link rel="alternate" hreflang="nl-be" href="https://www.example.be/nl/">
<link rel="alternate" hreflang="fr-be" href="https://www.example.be/fr/">
<link rel="alternate" hreflang="en" href="https://www.example.be/en/">
<link rel="alternate" hreflang="x-default" href="https://www.example.be/en/">
  • Language codes in ISO 639-1 (nl, fr, en), optionally with a country (be, nl).
  • Every version lists all versions, including itself.
  • x-default is the fallback for users who match none.
  • Can also be set in the XML sitemap or HTTP headers.

Common mistakes

MistakeResult
Missing return linksAnnotations ignored
Wrong codes (e.g. “be” as language)Annotations ignored
Hreflang pointing to redirected or noindexed URLsConfusion, wrong version shown
Canonical pointing to another languageVersions dropped from the index
Automatic redirects by IP or browser languageSearch engines and users cannot reach all versions

Beyond hreflang

  • Set the lang attribute on each page.
  • Translate titles, descriptions, alt texts and URLs.
  • Localise: currencies, contact details, examples.
  • Add a visible language switcher linking to the equivalent page.

Frequently asked questions

Is hreflang needed for a site in one language?

No. Hreflang is for sites with versions in several languages or for several countries. A single-language site only needs the correct lang attribute.

Can I use hreflang between different domains?

Yes. Hreflang works across subfolders, subdomains and separate country domains.