SEO · International · Web · i18n
hreflang for Multilingual Sites: An SEO Guide with Turkish and English
How to set up hreflang on a site with several languages: URL structure, reciprocal tags, x-default, how it relates to canonicals, hreflang in sitemaps and common mistakes.

This site is published in Turkish and English. Sites I built for health-tourism clients went up to five languages. Every time, the same question came up: Google shouldn't show the Turkish page to a user in Germany, and should show the Turkish version, not the English one, to a user in Turkey. The tool for that is hreflang.
Choose a URL structure
| Structure | Example | Note |
|---|---|---|
| Subdirectory | site.com/en/ | Easiest to maintain, authority on one domain |
| Subdomain | en.site.com | When separate infrastructure is needed |
| Country domain | site.de | Strong local signal, expensive to maintain |
For most projects subdirectories are the best choice. On this site Turkish lives at the root and English under /en/.
Tags must be reciprocal
Each language version lists every version, including itself:
<link rel="alternate" hreflang="tr" href="https://sanderyaz.com/blog/hreflang-cok-dilli-seo/" />
<link rel="alternate" hreflang="en" href="https://sanderyaz.com/en/blog/hreflang-multilingual-seo/" />
<link rel="alternate" hreflang="x-default" href="https://sanderyaz.com/blog/hreflang-cok-dilli-seo/" />
If the Turkish page points to the English one but the English page doesn't point back, Google ignores both. This is the most common mistake.
x-default
The page to show when the user's language matches none of your versions. Usually a language picker or the primary language version.
Using it with canonicals
Each language version's canonical must be itself. Pointing the English page's canonical at the Turkish page tells Google "don't index the English page".
Language codes
- Language: ISO 639-1 (
tr,en,de). - Optional region: ISO 3166-1 (
en-GB,de-AT).en-UKis invalid; the correct code isen-GB. - A region code alone (
hreflang="gb") doesn't work.
Pairing translations
Every article on this blog has a key field in its front matter. Turkish and English articles with the same key are paired automatically and the build script generates hreflang tags from that. If an article exists in only one language, no hreflang is emitted; linking to a page that doesn't exist is also an error.
hreflang in sitemaps
On large sites you can put the tags in the sitemap instead:
<url>
<loc>https://sanderyaz.com/en/blog/</loc>
<xhtml:link rel="alternate" hreflang="tr" href="https://sanderyaz.com/blog/" />
<xhtml:link rel="alternate" hreflang="en" href="https://sanderyaz.com/en/blog/" />
</url>
Don't auto-redirect by language
Forced redirects based on IP or the Accept-Language header can stop Googlebot (which mostly crawls from the US) from seeing other versions. Show a language suggestion banner instead and let users choose.
Validation
In the build, check that every hreflang target exists and links back. On this site that check runs on every build alongside the rest of the technical SEO checklist.
Conclusion
hreflang isn't hard, but it's unforgiving: reciprocal tags, self-referencing canonicals, correct language codes and no forced redirects. These four rules get each language version in front of the right users.


