Technical SEO

Hreflang — connecting language and regional pages

Hreflang describes equivalent pages for different languages or language-and-region audiences. It helps supporting search engines understand which version may suit a user.

Published: Updated: 3 min read
Diagram: Hreflang - language versions. PL - EN / DE / NL - Relations.

What is hreflang used for?

Hreflang describes equivalent pages for different languages or language-and-region audiences. It helps supporting search engines understand which version may suit a user. It does not translate content, enforce a country restriction or guarantee that a particular URL will always be shown. A multilingual site still needs useful local wording, appropriate navigation and indexable pages.

How to build a version group?

Each page should point to itself and its real-world counterparts using full URLs and valid codes. Links must be reciprocal. The optional x-default can describe the default page. The general German version is not the same as the offer limited to Germany, therefore the region code should reflect the actual content and delivery of the service.

Dictionary example

The SEO definition in PL, EN, DE and NL creates one group, even if the addresses have different services. Each version maintains its own canonical. Redirecting all canonically to the Polish website undermines the point of separate translations. The language switcher should open an equivalent entry, rather than forcing the reader to search again on a foreign home page.

Implementation procedure

Give a topic a common ID and generate links from one map. Verify the language, status and canonical of each item. Choose a supported way of writing in HTML, headers or sitemap and avoid contradictions. If a translation does not exist, do not create a fictitious URL or point to an unrelated page just to populate all languages.

Browser language

Automatic selection should not prevent an explicitly specified language from opening. Temporary redirection from neutral input may be useful, and a remembered manual selection should take precedence. Maintain stable translation addresses. Changing the content of the same URL depending on the browser requires careful assessment of cache and accessibility for robots.

How to test and maintain?

Study entire groups, not individual tags. Look for missing linkbacks, bad codes, redirects, and untranslated paragraphs. Update the map when topics are merged or the address changes. Analyze results by country and language. A technically correct declaration will not correct an offer that is not tailored to the market or an unnatural translation.

Example of translation linking

If the Polish guide has an actual English equivalent, both parties should refer to themselves and each other with the appropriate language markings. Each usually maintains its own canonical. Don't canonicalize all translations to the Polish version just because they describe the same topic. Hreflang helps describe linguistic equivalence, and canonical sorts out the preferred representation of the duplicate; they do not perform an identical task.

When a new article exists only in Polish, do not declare the general English home page as a translation. The switch should clearly show available equivalents. Redirection by browser language must not impede stable access to the selected address. Check the behavior without a saved decision and after manual selection, and in a technical audit also compare responses for different headers and cache settings.

Sources and further reading

Use the primary documentation to check the principles and limitations described in this article.

How we prepare the glossary

These articles combine original editorial work, AI support for editing and translation, and checks against linked primary documentation. Examples are illustrative unless stated otherwise; they do not represent client results. Dates refer to publication and actual content changes.

From knowledge to action

Need help putting this into practice?

Tell us about your website or process. We will define the scope and the next practical step.

Discuss your project