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
<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-defaultis the fallback for users who match none.- Can also be set in the XML sitemap or HTTP headers.
Common mistakes
| Mistake | Result |
|---|---|
| Missing return links | Annotations ignored |
| Wrong codes (e.g. “be” as language) | Annotations ignored |
| Hreflang pointing to redirected or noindexed URLs | Confusion, wrong version shown |
| Canonical pointing to another language | Versions dropped from the index |
| Automatic redirects by IP or browser language | Search engines and users cannot reach all versions |
Beyond hreflang
- Set the
langattribute 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.