Back

What Is hreflang, and What Happens When It Is Wrong?

You have translated your site into several languages. The Turkish, English, Arabic and Persian versions are all live. Then someone searching in Arabic finds you on Google — and lands on the English page. Or a visitor from Turkey is shown the Persian version. The content is right, the translation is good, and the visitor still leaves.

The cause is almost always the same: hreflang is either missing or set up incorrectly. This article covers what hreflang actually is, how to implement it properly, and exactly what goes wrong when you get it wrong.

What is hreflang?

hreflang is an annotation that tells search engines where to find the other language or regional versions of a page. Technically it is a link tag:

<link rel="alternate" hreflang="ar" href="https://example.com/ar/page/" />

That tag tells Google: “there is an Arabic equivalent of this page, and here is its address.” Google then tries to serve that version to people searching in Arabic.

Two misconceptions come up constantly. First: hreflang is not a ranking factor. It will not move your site up the results. What it does is make sure the right version is shown for the ranking you have already earned. Second: hreflang is a signal, not a directive. Google takes it into account but is not obliged to follow it in every case.

Its impact is still significant. A visitor who lands on the wrong language does not read; they go back. That costs you the sale and sends a poor user signal to the search engine at the same time.

How hreflang is implemented

There are three valid methods. What matters is picking one and applying it consistently — mixing methods across a single site is how errors creep in.

  • Link tags in the HTML <head>. The most common approach. Every page carries tags listing all of its language versions.
  • HTTP Link headers. Used for non-HTML files — a product catalogue published as a PDF in several languages, for example.
  • XML sitemap annotations. Language versions are marked up with xhtml:link inside the sitemap. On large sites this is by far the easiest to maintain.

Language codes follow ISO 639-1: tr, en, ar, fa. If you need to target a country, add a hyphen and the ISO 3166-1 Alpha-2 country code: ar-AE (Arabic for the UAE), en-GB (British English), fa-IR.

There is also x-default, which marks the page to serve when none of your language versions match the user. It usually points at your homepage or a language-selection page.

What happens when it is wrong

A broken hreflang setup fails quietly. Nothing crashes and no error is reported. The outcomes we typically find:

  • Google ignores the annotations entirely. This is the most common result. Tags that have been sitting there for years do nothing at all, and nobody notices.
  • The wrong language ranks. Someone searching in Arabic gets your English page. Bounce rate climbs, conversions fall.
  • Language versions compete with each other. When Google cannot work out which version is canonical, two versions of the same content crowd each other out on the same query.
  • The wrong version gets indexed. In some cases the page for the market you actually care about never gets indexed at all.

The common thread: none of these produces a warning anywhere. That is why hreflang problems survive for months, sometimes years.

The most common hreflang mistakes

These are what we find most often in audits, roughly in order of severity:

  1. Missing return links. The most frequent and most damaging error. If the Turkish page points to the Arabic page, the Arabic page must point back. Without that reciprocity Google cannot confirm the relationship and discards it. One-way hreflang achieves exactly as much as no hreflang.
  2. No self-referencing tag. Every page must list itself alongside the other languages. If the Arabic page omits its own hreflang="ar" tag, the set is incomplete.
  3. Invalid language or country codes. The classic case is writing en-UK for the United Kingdom. The correct code is en-GB, because GB is the ISO country code. Likewise, using an underscore instead of a hyphen (ar_AE) invalidates the tag.
  4. Using a country code on its own. hreflang="TR" is invalid. A country code cannot stand alone; the language must come first (tr or tr-TR).
  5. Relative URLs. hreflang URLs must be fully qualified, with protocol and domain. /ar/page/ will not work.
  6. Pointing at redirects or 404s. This is what breaks most often when a site is restructured. A tag pointing to an address that 301s elsewhere loses its credibility.
  7. Conflicting with canonical tags. If the Arabic page’s canonical points at the English page, you are telling Google two contradictory things at once. Each language version should canonicalise to itself.
  8. Pointing at noindexed pages. Advertising a page via hreflang while blocking it from the index makes no sense.

The whole list reduces to one principle: an hreflang set must be a closed, consistent loop. If you have four languages, each of the four pages should list the same four URLs, and every one of those URLs should return 200.

How to confirm it is right

Once implemented, verify in three steps:

  • Read the source. Open each language version and count the rel="alternate" tags in the page source. With four languages you should see four tags on every page. If the count is off, the loop is broken.
  • Open every URL. Check that each address in those tags genuinely returns 200, is not redirected, and opens in the expected language.
  • Watch Search Console. International targeting warnings and the indexing states in the Pages report show how Google is actually reading your setup. Changes take time to register — do not expect same-day results.

One practical habit: repeat those three steps every time you publish a new language version. The hreflang loop usually breaks when a language is added, because nobody remembers to add the new tag to the existing pages.

Language targeting or country targeting?

One of the most common questions in practice: for Arabic, should you use ar, or country splits like ar-SA and ar-AE?

The decision rule is simple: use country codes when the page content genuinely differs by country. If prices are quoted in different currencies, if delivery terms or legal text vary, or if contact details differ, country targeting earns its keep.

If the content is the same across all Arabic-speaking markets, a single ar tag is both sufficient and far easier to manage. Unnecessary country splits do nothing but multiply maintenance and the chance of error: five country codes means five times as many tags to verify on every new page.

There is a middle path too — keep a general ar version and add country versions only for markets that are actually different. For instance ar for all Arabic-speaking visitors, plus ar-AE if you have a service page specific to the Gulf. The ar version then acts as a natural fallback for the countries with no exact match.

The same logic applies to Persian. Unless the content is specific to one market, fa is enough.

The WordPress picture

On WordPress you do not need to write hreflang tags by hand. Multilingual plugins such as Polylang or WPML generate them automatically once pages are linked to each other inside a translation group.

The critical point: what generates the tag is not the translation, it is the link. If you publish the Arabic article as a standalone post and never associate it with the Turkish original, the plugin treats it as an independent entry and produces no hreflang tags at all. Your site shows four languages; as far as Google is concerned there are four separate, unrelated pages.

That is why, in a multilingual publishing workflow, all four versions of a post should be saved together as a single translation group. It is the method we follow on multilingual website builds.

The technical setup is not enough — the language has to be right too

When hreflang is correct, Google shows the visitor the page in their language. If that page is machine-translated, they leave anyway. The technical setup brings someone to the door; what keeps them inside is the text itself.

For Arabic and Persian the difference is especially stark. Both are written right to left, and literal translation rarely reads naturally. Search habits differ as well: the direct translation of your best-performing Turkish phrase may be something nobody searches for in Arabic. Keywords are therefore not translated but researched again for each language. That principle sits at the core of how we approach Arabic website design.

Once the language versions are correctly wired up, the next thing to look at is the health of the pages themselves. Our guide to the 5 SEO mistakes to avoid covers the issues that hold rankings back even when the hreflang loop is sound.

A short checklist

Verify these five points on your multilingual site and you will have eliminated most hreflang-related problems:

  1. Does every language version list all languages, including itself?
  2. Are the links reciprocal?
  3. Are the language and country codes valid, and joined with a hyphen?
  4. Are all URLs absolute, and do they all return 200?
  5. Does each page canonicalise to itself?

We are happy to review your multilingual site’s hreflang setup free of charge and share what we find. We are a four-language team, so we assess the technical implementation and whether the copy reads naturally at the same time. Get in touch.

Setting the tags correctly is one half of the job; the other is watching which language version actually enters which search. That monitoring, and the corrections that follow it, are part of how we work as an SEO company in Istanbul, with each of the four languages reported separately.

Neo1 Technology
Neo1 Technology
https://neo1.com.tr