Two languages, one website

Hreflang for a two-language website.

Hreflang tells search engines which page is the same content in another language. This guide shows how the English and Croatian versions of our own website are connected, what we checked and which small gaps we found.

What it does

A signal between pages, not a translation tool.

Google’s guide to localized versions of your pages (opens in a new tab) describes hreflang as a way to point searchers to the version in their language. It does not translate anything and does not move a page higher in results.

On this website English pages have no language prefix and Croatian pages live under /hr/. Each page that exists in both languages lists both versions in its <head>.

How a pair is built

Every version names every version.

01

Both directions

The English page names the Croatian one and the Croatian page names the English one. A link in one direction only can be ignored.

02

A reference to itself

Each page also lists its own address for its own language, so the set is the same on both pages.

03

The same address as the canonical

The URL in hreflang should be the canonical URL that returns 200, with the same protocol, domain and trailing slash.

04

A default for everyone else

We added x-default pointing to the English page, for visitors whose language is neither English nor Croatian.

Polylang writes the first three for each translated pair. The x-default line comes from a small addition to the site, and we checked it on every pair after we added it.

Since November 2026 part of the site also has a Bosnian version under /bs/. On those pages the set has three languages, and each version lists all three. Where there is no English page, x-default points to the Croatian one.

Pages without a translation

Not every page needs a pair.

  • Some pages exist in one language only, for example a service aimed at agencies abroad or a guide written for the Croatian market. Those pages have no hreflang and no language switch, which is correct.
  • A translation that is scheduled but not yet published must not appear. On our site the Croatian page starts naming its English pair only on the day the English page is published.
  • A page that redirects or returns an error should never be listed as an alternative. Check the status of every URL in the set.

Check your website now. 12 security and 6 SEO checks from the outside in about ten seconds, free of charge.

Or see our SEO service.

Let people choose

No automatic redirects by browser language.

Google’s advice on multi-regional and multilingual sites (opens in a new tab) is to avoid automatically redirecting visitors based on their assumed language. Crawlers and many visitors would then never see the other version.

Our language is always in the address, so we do not redirect by browser language and we do not set a language cookie. A visitor can switch with the link in the header, which appears only when the other version exists.

Same page, same substance

Check the content, not only the tags.

Hreflang only connects pages. Visitors notice when the two versions offer different things. We compared every pair on our site: the number of sections and headings, and whether a link in one language has its counterpart in the other.

The tags were correct on all pairs. The content check found that several English service pages did not yet link to a service added later, while their Croatian pairs did. We fixed those links. Differences that are intentional, such as more guides featured on the Croatian hub page, stay as they are.

Checklist

For each page that exists in two languages.

  • Does each version list both languages, including itself?
  • Does every hreflang URL match the canonical URL and return 200?
  • Is there an x-default, and does it point to the version you want as the fallback?
  • Do pages without a translation have no hreflang and no language switch?
  • Does a scheduled translation stay hidden until it is published?
  • Can visitors reach the other version without being redirected automatically?
  • Do both versions have the same sections and link to each other’s counterparts?
  • Do you repeat the check after adding pages or changing URLs?

Language versions are part of a wider technical review. Our SEO migration checklist covers what to check when addresses change.

Planning a second language?

Our website development and SEO services include agreeing which pages exist in which language and how they are connected.