Skip to content
Meneer Marketing, to homeNederlands
Nederlands

Building

Setting up hreflang for a bilingual website: the lines for the head and the sitemap

Your Dutch and English pages must point to each other. Enter the address per language, get the lines for the head and sitemap, and read what Google and Bing say.

10 min readKVK 42095913, based in Apeldoorn (Gelderland)

In my measurement of 13 and 14 October 2026, for a salon with a site in three languages, ChatGPT showed a link to a page in a different language from the question in five of the eight answers. On every content page, the language links in the HTML pointed to the home page of the other language and not to the same page. I fixed that on 14 October. I cannot prove that those links were the cause, because ChatGPT's answers differ every time.

A bilingual site has to get visitors and robots to the same page in the right language. For that, hreflang is the list on every page with all the language versions of that page. You make the list itself in a few minutes. Finding the errors in it takes longer.

What does hreflang do and what does it not do?

On the page about localised versions Google writes that hreflang helps Google show the right version of a page, by language or region. Google can also find language versions itself, but usually thinks it is better if you state them yourself. That page was updated on 21 September 2026 and I read it on 20 November 2026.

What hreflang does not do is determine the language of your page. Google writes that it does not use hreflang or the lang attribute for that and takes the language from the visible text. In the explanation about sites in multiple languages, updated on 10 December 2025, Google therefore asks for one language for text and menu on every page and for no translations side by side. If you only translate the menu and footer and leave the main text, the same content can appear several times in the results with a menu in another language. Google calls that a poor experience.

A fully translated page is not a duplicate of the original, according to Google. Localised versions only count as duplicates if the main text stays untranslated.

On 19 December 2025 Bing wrote in a blog about duplicate content that localisation creates duplicate content if pages for a language or region are nearly the same and make no real difference to visitors. Bing recommends localising with real differences, such as terms, examples, rules or product data, and not making several pages in the same language that serve the same purpose. For language and region, Bing mentions hreflang. According to the same blog, language models put nearly identical addresses in a group and pick one page as the representative. Bing's guidelines for webmasters, which I read on 20 November 2026, say nothing about language versions. How Bing weighs hreflang alongside the lang attribute, I did not find on any official page.

How do you make the hreflang lines for a page?

For each language, you enter the full address of the same page. A language for which that page does not exist, you leave empty. You get the lines for the head and the lines for your sitemap, and every language version gets the same list, with itself in it. My tool reports an address without https, an address that is used for two languages and a value that is not an address. It does not test whether the page exists and returns a 200. It recognises the codes nl, en, de and x-default. Another language or a region, such as nl-BE or en-GB, you add yourself in the same form. What you enter stays in your browser.

Example: a made-up site with the contact page in three languages. Every address gets its code, and every version gets the same four lines.

LanguageAddress of the pageValue of hreflang
Dutchhttps://www.voorbeeld.nl/nl/contactnl
Englishhttps://www.voorbeeld.nl/en/contacten
Germanhttps://www.voorbeeld.nl/de/contactde
Fallback pagehttps://www.voorbeeld.nl/nl/contactx-default

In the sitemap, every language version gets an entry of its own with its address and below it the same four lines. The urlset has the attribute xmlns:xhtml='http://www.w3.org/1999/xhtml', because the lines are called xhtml:link. The line for x-default goes in every entry, but my tool does not make an entry of its own for it.

Which language codes may you use?

Google asks for a language code according to ISO 639-1, optionally followed by a hyphen and a region code according to ISO 3166-1 Alpha 2. Capital letters make no difference to Google, but you write the region in capitals according to ISO custom, such as en-GB. A region on its own is not valid. These are my examples, with the errors that Google itself mentions.

CodeMeaningRight or wrong
nlDutch, for every visitor who wants DutchRight
nl-BEDutch for visitors in BelgiumRight, this is the example Google gives for Belgium
enEnglish, without a regionRight. If you also have en-GB or en-US, add a general en page
beMeant as BelgiumWrong: be is the language code for Belarusian and a region never stands alone
en-UKMeant as the United KingdomWrong: the region code is GB, and a code such as UK has no effect according to Google
x-defaultFallback for all other languagesRight, without a language code

If you add a code yourself that my tool does not recognise, such as nl-BE, check it against the ISO lists. My tool does not do that.

Which address do you put with x-default?

Google mentions two things. X-default is for visitors whose language is not in your list, and it is meant for pages where visitors choose a language and works best there. For a site without a language selection page, I set it to the Dutch version. I did that for a salon in three languages. It is my choice and not a Google requirement.

Which method do you choose: head, header or sitemap?

MethodWhat Google writesWhat I do with it
Link lines in the headUseful if you have no sitemap or cannot set HTTP headers. Every version gets the same list, with itself in itOn every site in more than one language
HTTP headerUseful for files without HTML, such as a PDFNot for ordinary pages
SitemapOne entry per address, with xhtml:link lines for every version, including itselfAlongside the head, made from the same data

Google writes that the three methods are equivalent and that using all three at once gives no advantage in Search, but does give more to manage. On a salon site in three languages that I built, the list comes from one place in the code and is in the head and in the sitemap. That way the two cannot contradict each other. That is my way of working and not a Google requirement.

Which address fits which language?

Google recommends using a separate address for each language and not using cookies or browser settings to switch the language of a page. The explanation about sites in multiple languages lists four structures with their advantages and disadvantages, which I read on 20 November 2026.

StructureExampleWhat Google writes about it
Country domainvoorbeeld.deClear for a country, but more expensive, with more infrastructure and for only one country
Subdomainde.voorbeeld.comEasy to set up. Visitors do not always see whether de is a language or a country
Subfoldervoorbeeld.com/de/Easy to set up and little upkeep, but the separation between the versions is harder
Parametervoorbeeld.com?loc=deGoogle advises against it

For the site of a small or medium-sized business I choose the subfolder. On meneermarketing.nl the Dutch is at the normal addresses and the English under /en/, with English addresses such as /en/prices. Google writes that words in the language itself are fine in the address.

If you move an existing Dutch site into a folder such as /nl/, every old address gets a new address. Redirect those addresses permanently, as I explain in making 301 redirects for a new website.

What often goes wrong with hreflang?

Most errors are not in the code of one page but in how the pages fit together. These are the errors that Google mentions or that I saw myself, with what you do.

ErrorWhat the source writesWhat you do
A version does not point backGoogle ignores the lines if two pages do not point to each otherPut the same list on every version
A page does not name itselfGoogle asks that every version names itself and all the othersInclude its own address
A relative or an http addressGoogle asks for full addresses, and an http address in hreflang can disturb the choice of the canonicalWrite the whole address with https
A code that does not existA region on its own or a code such as UK has no effect, and es-419 is not supportedCheck every code against ISO 639-1 and ISO 3166-1
A canonical to another languageFor pages with hreflang, Google asks for a canonical in the same languageGive every version a canonical to itself
A reference to the home page of the other languageMy own rule and my observation at a salonPoint to the same page in that language
Two languages with the same addressMy tool reports itGive every language its own address

For the canonical, read Google's explanation about canonical addresses, which was updated on 10 July 2026 and which I read on 20 November 2026. Google also says there that when choosing a canonical it gives priority to the addresses in a hreflang group. A page that is not in the list of the others is therefore less likely to be chosen as the canonical.

Should you redirect visitors to their own language?

Google advises against automatically sending visitors from one language version to another based on what you think their language is. According to Google, such redirects can prevent visitors and search engines from seeing all versions. Googlebot usually comes from the United States and does not send an Accept-Language header, so Google may not find your other versions. Google calls using the IP address to adapt content difficult and usually unreliable.

What does work is a visible language choice with ordinary links to the same page in the other language. On a salon site with three languages, at the top of the page there is also a line that offers the same page in the language of the browser. Anyone who has Dutch in their browser never sees it on a Dutch page. It disappears after a click on the cross and only appears if the hreflang link exists. Nothing is redirected automatically.

How do you check whether it is right?

View the source of the Dutch page and of the English version of the same page and search for hreflang. Both show the same list, with their own address in it. Open every address in the list: it gives the page in that language, without a redirect, and not the home page or an error page.

My check script looks, per page, at whether the references are mutual, whether the page names itself and whether a reference points to the home page of another language. That script is my own tool and is not online. You can go through every point yourself with the source of a page.

I then report a new language version with the sitemap in Search Console and through IndexNow at Bing, as in setting up Bing Webmaster Tools and IndexNow. If your site has more languages, add hreflang to the checks in the checklist for going live, next to the sitemap and the canonical. Every language version gets its own title and description in its own language, as I describe in writing a title and description for Google.

What do I do myself on meneermarketing.nl?

Since 18 November 2026, meneermarketing.nl has had an English version of 71 core pages. The Dutch stays at the normal addresses and the English is under /en/ with English addresses. Every translated page lists Dutch, English and x-default in hreflang. The English has a sitemap file of its own with 71 addresses, which is in the sitemap index. A page without an English version has no English address and therefore no hreflang either. The addresses come from one file in the code and a script of my own checks whether the pairs are right in both directions.

When I help with this

If you want a second language on your site, send me a message with the address of your site. I tell you which pages to translate, choose the addresses and set up the lists. A website with your own code starts at €1,400 one-off. In a subscription you pay from €179 per month, excluding VAT. What an extra language costs depends on the number of pages and is in your proposal, which you get within one working day. I usually reply within 2 hours, seven days a week. More is on websites with your own code and on prices.

Sources

Frequently asked questions on this topic

What is hreflang?
Hreflang is an attribute you use to state, for a page, which other versions exist in another language or for another region. Google uses it to show visitors the right version. You set it as link lines in the head, in your sitemap or as an HTTP header, and Google calls those three ways equivalent. It does not determine the language of your page: Google takes that from the visible text.
Does every page on my site need hreflang?
Every page that exists in more than one language lists all its versions. A page in only one language does not need it. Google writes that on some pages you may leave languages out if the upkeep gets too heavy, but that new language versions do have to point both ways with the main language. With me, a page without a translation gets no address in that language and therefore no hreflang either.
What is x-default and do I need it?
X-default is the value for visitors whose language is not in your list. Google calls it the fallback page and writes that it is meant for pages where visitors choose a language. You do not add a language code to it. It is recommended, not required. If you have no language selection page, with me it points to the version in the main language. That is my choice and not a Google rule.
What is the difference between nl and nl-BE?
Nl means Dutch, for every visitor. Nl-BE means Dutch for visitors in Belgium. Google asks for a language code according to ISO 639-1, optionally with a hyphen and a region according to ISO 3166-1 Alpha 2. A region on its own, such as be, does not work, because be is the code for Belarusian. If you have pages per region in the same language, also add a general page for that language.
Why does Google ignore my hreflang?
Usually because a page does not point back. Google writes that the lines are ignored if two pages do not point to each other, and that wrong language or region codes do not work. Check in the source of both pages whether the lists are the same, whether every address is complete with https and whether the canonical of every version is in the same language. Google asks for that with hreflang, so an English page with a canonical pointing to the Dutch one does not fit with that.
May I automatically redirect visitors to their language?
Google advises against it. It writes that you should not automatically send visitors from one language version to another based on what you think their language is, because search engines and visitors then do not see all versions. Googlebot usually comes from the United States and does not send an Accept-Language header. Put a visible language choice with ordinary links on the page and let the visitor choose.
Does Google use the lang attribute to determine the language of my page?
No. Google writes that it does not use hreflang or the lang attribute to recognise the language of a page. It reads the visible content. So make sure that text and menu on every page are in one language and avoid translations side by side. A page with only a translated menu and a main text in another language can show the same content several times in the results.
Is a translated page duplicate content?
According to Google, localised versions only count as duplicates if the main text stays untranslated. Bing calls localisation duplicate content if pages for a language or region are nearly the same and make no difference to visitors, and recommends localising with real differences. A Dutch and an English page with truly translated text therefore do not count as duplicate content according to Google.
Does hreflang help to appear in ChatGPT in the right language?
I cannot prove that. In my measurement of 13 and 14 October 2026, for a salon in three languages, ChatGPT pointed to a different language from the question in five of the eight answers, while the language links in the HTML pointed to home pages. I fixed that. Whether OpenAI reads hreflang, I do not know. My rule: every reference to another language points to the same page. Answers differ every time.
How do I check my hreflang?
View the source of the Dutch and the English version of the same page and search for hreflang. Both show the same list, with their own address in it. Open every address: it gives the page in that language, without a redirect and not the home page. Then submit your sitemap in Search Console and Bing Webmaster Tools, so that both search engines get the new addresses.
What does it cost if you make my site bilingual?
A website with your own code starts at €1,400 one-off, and in a subscription you pay from €179 per month, both excluding VAT. What an extra language costs depends on the number of pages and is in your proposal, which you get within one working day. Work outside your package costs €80 per hour, agreed in advance. The amounts are on the prices page.

Apply this article to your situation?

In a conversation I turn this kind of insight into concrete priorities for your channels and your site.

Questions about this topic

Short and detailed answers to the questions that go with this.

All questions and answers
I am on Instagram tooThat is where I show what I build and what works, in short posts and reels.@meneermarketingBack to the knowledge base