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.
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.
| Language | Address of the page | Value of hreflang |
|---|---|---|
| Dutch | https://www.voorbeeld.nl/nl/contact | nl |
| English | https://www.voorbeeld.nl/en/contact | en |
| German | https://www.voorbeeld.nl/de/contact | de |
| Fallback page | https://www.voorbeeld.nl/nl/contact | x-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.
| Code | Meaning | Right or wrong |
|---|---|---|
| nl | Dutch, for every visitor who wants Dutch | Right |
| nl-BE | Dutch for visitors in Belgium | Right, this is the example Google gives for Belgium |
| en | English, without a region | Right. If you also have en-GB or en-US, add a general en page |
| be | Meant as Belgium | Wrong: be is the language code for Belarusian and a region never stands alone |
| en-UK | Meant as the United Kingdom | Wrong: the region code is GB, and a code such as UK has no effect according to Google |
| x-default | Fallback for all other languages | Right, 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?
| Method | What Google writes | What I do with it |
|---|---|---|
| Link lines in the head | Useful if you have no sitemap or cannot set HTTP headers. Every version gets the same list, with itself in it | On every site in more than one language |
| HTTP header | Useful for files without HTML, such as a PDF | Not for ordinary pages |
| Sitemap | One entry per address, with xhtml:link lines for every version, including itself | Alongside 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.
| Structure | Example | What Google writes about it |
|---|---|---|
| Country domain | voorbeeld.de | Clear for a country, but more expensive, with more infrastructure and for only one country |
| Subdomain | de.voorbeeld.com | Easy to set up. Visitors do not always see whether de is a language or a country |
| Subfolder | voorbeeld.com/de/ | Easy to set up and little upkeep, but the separation between the versions is harder |
| Parameter | voorbeeld.com?loc=de | Google 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.
| Error | What the source writes | What you do |
|---|---|---|
| A version does not point back | Google ignores the lines if two pages do not point to each other | Put the same list on every version |
| A page does not name itself | Google asks that every version names itself and all the others | Include its own address |
| A relative or an http address | Google asks for full addresses, and an http address in hreflang can disturb the choice of the canonical | Write the whole address with https |
| A code that does not exist | A region on its own or a code such as UK has no effect, and es-419 is not supported | Check every code against ISO 639-1 and ISO 3166-1 |
| A canonical to another language | For pages with hreflang, Google asks for a canonical in the same language | Give every version a canonical to itself |
| A reference to the home page of the other language | My own rule and my observation at a salon | Point to the same page in that language |
| Two languages with the same address | My tool reports it | Give 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
- the page about localised versionsdevelopers.google.com
- the explanation about sites in multiple languagesdevelopers.google.com
- a blog about duplicate contentblogs.bing.com
- Google's explanation about canonical addressesdevelopers.google.com
Frequently asked questions on this topic
What is hreflang?
Does every page on my site need hreflang?
What is x-default and do I need it?
What is the difference between nl and nl-BE?
Why does Google ignore my hreflang?
May I automatically redirect visitors to their language?
Does Google use the lang attribute to determine the language of my page?
Is a translated page duplicate content?
Does hreflang help to appear in ChatGPT in the right language?
How do I check my hreflang?
What does it cost if you make my site bilingual?
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.
What is technical SEO and what do you have checked?
Technical SEO is the work that makes sure Google can reach and read your site and show it quickly on a phone.
Read the answerWhat has to be on a business website?
On a business website you state what you do and for whom, what it costs or how the price comes about, proof that you can do it and how you can be reached.
Read the answer



