International SEOOctober 20264 min readUpdated on October 30, 2026
Hreflang, subdirectories, subdomains: the architecture that makes a translated site visible
Translating is not enough. Google also needs to understand which version to show to whom, and that is determined by the URL structure and a few tags that are often incorrectly set.
Three ways to organize languages
Before writing a single tag, you need to decide where each language will live. Google describes three options in its guide on multilingual and multi-regional sites, and none is perfect.
| Structure | Example | Strengths | Weaknesses |
|---|---|---|---|
| Country-specific domain | example.de | Very clear geographic signal | Each domain starts from scratch; multiple sites to manage |
| Subdomain | de.example.com | Can be hosted separately | Often treated as a separate site |
| Subdirectory | example.com/de/ | Benefits from the main domain's authority; only one site to maintain | Less pronounced geographic signal |
For most websites, the subdirectory is the best compromise: all languages benefit from the links earned by the domain, and there is only one site to maintain. The country-specific domain is mainly justified when the company has a real local presence, with its own prices, terms, and customer service for each country. It is also the simplest structure to set up with a translation proxy, since everything remains on the same domain.
What the hreflang tag does
The hreflang annotation tells Google that a page exists in multiple languages and provides the address of each version. It is used to show the right version to each user, and to prevent versions from competing with each other in the results. It can be declared in the head, in HTTP headers, or in the sitemap; Google's documentation details all three methods.
Here is the block for a homepage available in five languages, to be placed in the head:
<link rel="alternate" hreflang="fr" href="https://exemple.com/" /> <link rel="alternate" hreflang="en" href="https://exemple.com/en/" /> <link rel="alternate" hreflang="de" href="https://exemple.com/de/" /> <link rel="alternate" hreflang="es" href="https://exemple.com/es/" /> <link rel="alternate" hreflang="it" href="https://exemple.com/it/" /> <link rel="alternate" hreflang="x-default" href="https://exemple.com/" />
The same block must appear in each of the versions, and each version must include itself within it.
The most common errors
- No return link. If the French page declares an English version, the English page must declare the French one. Without this reciprocity, Google may ignore the annotations.
- Incorrect codes. You write en-GB and not en-UK: the language follows the ISO 639-1 standard, the region the ISO 3166-1 alpha-2 standard. A country code alone, such as hreflang="be", is not valid.
- A page that does not cite itself. Each version must appear in its own list of alternatives.
- A contradictory canonical. A translated version whose canonical tag points to the French page in practice asks Google to ignore it. Each version points to itself.
- URLs that do not respond. An annotation that leads to a redirected page or one with an 404 error is useless.
- No x-default. This value designates the page to offer when no language matches the visitor.
Also readWhy a translation widget often remains invisible to Google.Hreflang does not make a page rank higher. It only tells Google which one to show.
What Google doesn't look at
Google doesn't use the HTML lang attribute to determine a page's language: it relies on visible content. A page whose text has been translated but whose menu, buttons, and footer remain in French therefore sends a confusing signal. Translate the interface along with the rest.
Also avoid automatic redirection based on the browser's language. Since Googlebot generally doesn't send a language preference, it may never see more than one version. Offer a visible language selector on all pages, and let the visitor choose.
The Checklist
- A distinct URL per language, preferably in a subdirectory.
- Complete, reciprocal hreflang annotations, with x-default.
- A canonical pointing to the page itself, not to the original.
- Visible content fully translated, interface included.
- A language selector rather than a forced redirect.
If your translations currently go through a browser-based script, start with our article on JavaScript translation: without a unique URL per language, hreflang has nothing to announce.