SEO

What is the hreflang tag and how do I use it?

Short answer

Hreflang is a signal that tells search engines about the versions of the same page in different languages or countries, so users are shown the version in their own language. Each version must point to all the others and also include itself.

Step by step

  1. Use a separate URL for each language version (for example /tr, /de).
  2. Add hreflang links for all language versions to every page.
  3. Include the page’s own version in the list.
  4. Specify x-default for the default version.
  5. Check that the reciprocal links are correct with a tool.

In detail

Why is it needed?

It tells search engines about versions of the same content in different languages; the user is shown the version suited to their own language or country, and duplicate-content problems between languages are reduced. Hreflang is a hint, not a redirect; users must be able to switch to whichever version they want.

How do you implement it correctly?

Each page must list itself and all other language versions, and the links must be reciprocal. Language codes (tr, de) and, if desired, country codes (tr-TR) must be written correctly, and x-default should be specified for the default version. The annotations can be added to the page’s head section, to the HTTP header or to the sitemap.

Common mistakes

Non-reciprocal links, wrong language codes, hreflang that conflicts with the canonical address, and pointing to redirected or nonexistent addresses are the most common mistakes. Check all language clusters regularly with an audit tool.

Follow-up questions

Does hreflang improve rankings?
It isn’t a direct ranking signal; it makes sure the right language version is shown to the right user. That can lead to more clicks and greater satisfaction.
What should I do for pages I haven’t translated?
Annotate only the language versions that actually exist. Pointing to a version that doesn’t exist causes errors.

Platform interfaces change over time; check the platform’s official help pages for current steps.