Brand, websites, SEO & GEO and automations for small businesses.

WhatsApp
Guides

Multilingual website SEO: ranking languages with hreflang

Multilingual website SEO: implement hreflang tags, structure language URLs, and eliminate indexing errors that cause search engines to ignore your pages.

Trois petits drapeaux blancs sur un support, un mât à pointe bleue, sur un bureau clair

A multilingual website creates a fundamental question for Google: when a user in Madrid searches for your services, should search results serve the Spanish or French translation? Without unambiguous markup, search engines guess, frequently serving the wrong dialect. The hreflang attribute resolves this challenge: it explicitly tells Google that an alternative language version exists and provides its exact address. This guide explains how to write hreflang markup, structure language URLs, and eliminate the syntax errors that make engines ignore your annotations.

Why hreflang matters for multilingual SEO

The hreflang attribute ensures the correct linguistic version of a web page is served in Google search results based on the user's browser language and geographical territory. Without it, Google might rank your French page in German search results, despite having an authentic German translation available.

Technically, hreflang is an attribute added to a <link rel="alternate" hreflang="..."> tag. Google parses this markup and understands that your French, English, and Italian URLs represent identical translated content. This prevents alternate language versions from being flagged as duplicate content.

Consider a hotel in Lyon maintaining French and English sites. A London traveller searches for the hotel name. With hreflang implemented, Google returns the English URL directly. Without it, the traveller lands on the French site and may bounce back to an online travel agency. The tag does not inflate rankings; it routes search traffic accurately.

How to format hreflang tags correctly

The attribute consists of a language code, an optional country code, and the absolute URL of the corresponding page. According to Google Search Central documentation, language codes must follow ISO 639-1 (two-letter format such as fr or en), while optional region codes follow ISO 3166-1 Alpha 2 (such as FR, BE, or CH). Providing a country code in isolation without a language code is invalid.

Here is the head markup for a French page accompanied by English and German editions:

<link rel="alternate" hreflang="fr" href="https://www.exemple.fr/fr/services.html" />
<link rel="alternate" hreflang="en" href="https://www.exemple.fr/en/services.html" />
<link rel="alternate" hreflang="de" href="https://www.exemple.fr/de/services.html" />
<link rel="alternate" hreflang="x-default" href="https://www.exemple.fr/en/services.html" />

Core implementation principles:

  • Code fr targets all francophone audiences worldwide. Code fr-BE specifically targets French speakers in Belgium. Only append territorial codes when page copy differs meaningfully by country (such as currencies, local compliance, or delivery terms).
  • Value x-default designates the fallback URL served when a searcher's language preferences match none of your declared alternatives. It typically points to the global English edition or a localized language selector.
  • The identical configuration block must appear across all localized alternates. The English page must reference the French, German, self-referential English, and x-default paths.

Three valid implementation methods

Google supports three implementation methods, and adopting one is sufficient:

  1. HTML header tags placed inside the <head> element, as demonstrated above. This remains standard for showcase websites.
  2. HTTP Link headers returned directly by web servers. Ideal for non-HTML assets such as multilingual PDF brochures.
  3. XML sitemap markup, appending <xhtml:link> elements beneath each <url> node. Highly scalable for large platforms. Google confirms alternate links do not count against sitemap URL ceilings. Our guide to creating XML sitemaps covers setup.

On WordPress, Webflow, or Shopify, multilingual plugins automate this output. Always inspect page source code to ensure proper generation.

Frequent implementation errors that invalidate hreflang

The most pervasive bug is missing reciprocal confirmation: page A points to page B, but page B fails to point back to page A. Google documentation states explicitly that if two pages do not reciprocally reference each other, their hreflang annotations will be ignored entirely.

Other classic implementation mistakes:

  • Omitting self-referential tags. Google requires every localized URL to include itself within its own hreflang cluster. Many template themes overlook this rule.
  • Using relative URL paths. Paths such as /en/services.html are invalid. Google mandates fully qualified absolute URLs including transfer protocol: https://www.exemple.fr/en/services.html.
  • Invalid ISO codes. Values like fr-FRA, en-UK, or francais violate international naming standards. The official ISO code for the United Kingdom is GB.
  • Blocked or redirected alternate URLs. Pointing annotations to pages returning 404 errors, 301 redirects, or noindex directives breaks link evaluation.
  • Conflicting canonical tags. Google instructs that each language alternate must have a self-referential canonical tag in its respective language. An English page declaring a French canonical informs Google to ignore the English edition. Learn more in our overview of canonical tags in SEO.

Although the legacy International Targeting report was retired from Google Search Console, Google confirms hreflang remains fully active. Verify tags by cross-referencing source code across versions or running technical website crawler audits.

Structuring website URLs across languages

For small and medium enterprises, organising languages into subdirectories on a unified top-level domain provides the cleanest and most cost-effective architecture: example.com/fr/, example.com/en/. Google outlines four architectural structures:

ArchitectureExample patternGoogle Search Central guidanceBest suited for
Country-code TLDsexample.deClear geographic targeting, but costly with fragmented authorityEstablished international corporations
Subdomainsde.example.comSimple technical isolation, but users do not always recognize targetingEnterprise applications and SaaS platforms
Subdirectoriesexample.com/de/Straightforward setup, consolidates total domain authorityMost growing businesses and SMEs
URL parametersexample.com?lang=deExplicitly discouraged by search enginesStrongly advised against

Country-code domains make sense when operating distinct local legal entities, unique inventory pricing, and domestic teams. For local practices or hotels welcoming international guests, language subdirectories centralise search authority. Explore domain strategies in our guide to choosing between .com and .fr domains.

Whichever structure you select, preserve strict language exclusivity per URL. Google detects language intent far more reliably when body text and navigation elements share a single language without bilingual text blocks.

Multilingual operational pitfalls unrelated to hreflang

The most disruptive error is implementing automatic IP georedirections based on visitor locations. Google explicitly advises against forced redirects, recommending visible on-page language switchers instead. Forcing redirects prevents Googlebot from crawling non-English pages and frustrates bilingual users browsing from abroad.

The second hazard is publishing unedited raw machine translations. Google warns against automated content that blends boilerplate phrases with uneven prose, risking duplicate content flags. Machine translation can serve as a drafting aid provided human editors review every page before publishing.

The third mistake is launching incomplete site translations. Publishing three fully translated core pages (home, services, contact) delivers vastly superior user trust compared to hundreds of semi-translated stub articles. Review duplicate content risks in our guide on duplicate content SEO.

Search requirements for Bing and AI search engines

Bing prioritises the content-language meta tag. In official webmaster documentation, Bing confirms evaluating <meta http-equiv="content-language" content="fr-FR"> inside the HTML head, followed by the root HTML lang attribute, server IP geolocation, and page text. Adding this tag carries zero overhead and supports non-Google crawlers.

Generative AI assistants such as ChatGPT, Perplexity, and Google AI Overviews do not utilize dedicated proprietary language tags. They rely extensively on traditional search engine indexes; a clean, fully indexed localized version ensures AI assistants cite accurate foreign language answers.

What Resolve delivers for multilingual websites

When Re:solve builds multilingual web platforms, we engineer hreflang architecture from the wireframing phase rather than as an afterthought. Every template generates reciprocal alternate links, self-referential canonical tags, aligned XML sitemaps, and configured x-default fallbacks. Our own agency platform operates across six localized languages using this exact blueprint.

Our guidance: two or three polished, human-reviewed language editions deliver substantially higher business value than ten half-translated pages. Look at actual traffic analytics: customer metrics often show demand in unexpected regions before intuition catches up.

If you have concerns regarding your international markup, run our free website audit tool to identify structural bottlenecks, and our team will examine your hreflang configuration with you.

Frequently asked questions

Should hreflang target country codes or language codes?

Language codes are sufficient in most cases. Regional country codes are only required when tailoring copy to distinct regional markets, such as displaying Swiss francs on fr-CH and euros on fr-FR. Single global translations should declare simple language codes like fr.

Does implementing hreflang directly boost search rankings?

Not directly. The attribute ensures search engines serve the appropriate language variation to targeted audiences and prevents translated editions from being penalised as duplicate content. Actual rankings still rely upon page performance, topical depth, and inbound link authority.

Does a monolingual single-language site require hreflang?

No. Hreflang is strictly required only when managing multiple linguistic editions of identical pages. Simply confirm your root <html> tag declares the correct language attribute, such as lang="en", and focus your efforts on content quality.

Further reading

Start today.

We review your brand, website and online visibility, then set out your priorities.

Chat on WhatsApp