Multilingual Website URL Structure: Paths, Subdomains, or Domains?

Compare language paths, subdomains, and country domains. Learn how to use hreflang, canonical URLs, internal links, and helpful language switching.

Published
Reading time
8 min read
Multilingual Website URL Structure: Paths, Subdomains, or Domains?
On this page

Choosing a multilingual website URL structure affects how people navigate localized pages and how search engines discover them. This guide compares language subdirectories, subdomains, and country-code domains, then covers language switching, internal links, canonical URLs, and hreflang identifiers.

Key Takeaways

  • Choose URL patterns that give each language version a stable, crawlable URL. Subdirectories, subdomains, and separate country-code domains can all work.
  • Pick a structure your team can maintain consistently; there is no universally best option.
  • Give translated pages their own URLs and use hreflang to identify equivalent language or regional versions.
  • Keep each localized page’s canonical URL pointed to itself unless there is a genuine duplicate that should consolidate elsewhere.
  • Let people choose their language. When a translation exists, send them to the equivalent page; otherwise, offer a useful fallback rather than silently sending them to an unrelated page.

Choose a URL structure your team can maintain

The best multilingual website URL structure depends on your markets, infrastructure, and publishing workflow. Search engines need to find the localized URLs; a particular URL pattern alone does not guarantee that a page will rank in a given country.

StructureExampleAdvantagesTrade-offs
Language subdirectoriesexample.com/fr/products/One domain to manage; language sections are easy to organize and compareRequires routing and content management that support locale paths
Language subdomainsfr.example.com/products/Can support distinct deployments, teams, or technical configurationsMay require separate configuration and monitoring; cross-subdomain consistency needs attention
Country-code domainsexample.fr/products/Clear country-specific presence and a natural fit for country-specific contentMore domains to register, secure, maintain, and measure; a country domain is not a language selector by itself

A language subdirectory is often a straightforward operational choice when a site has one domain and shared infrastructure. A subdomain may suit a team that deploys each locale separately. Separate country-code domains can make sense when the business genuinely operates country-specific sites, with distinct content, legal requirements, or branding.

Do not choose a country-code domain just because you need a language version. French is used in multiple countries, and a French-language page is not automatically France-specific. Conversely, a page for France may need content tailored to that market, not merely a translation.

Decide on a stable pattern before publishing many localized pages. Changing URL structures later means updating internal links, redirects, canonical tags, and language annotations.

Advertisement

Give each language version a distinct, consistent URL

Use separate URLs for versions intended for different languages or regions. For example:

https://example.com/en/products/widget
https://example.com/fr/products/widget
https://example.com/fr-ca/products/widget

Keep the pattern consistent across the site. If locale codes appear in paths, choose a clear convention such as fr for general French and fr-ca for French tailored to Canada. Use consistent casing and separators; lowercase paths are a common convention, not a requirement of language identification.

Use language identifiers that accurately describe the page. For hreflang, Google guidance uses a language code and, optionally, a region code—for example, en, en-GB, or fr-CA. A region code alone does not identify a language. Do not use a locale label that misrepresents the content: an en-GB annotation is not appropriate for a page written for US English merely because it is hosted on a UK domain.

If you want to check how a URL is divided into components before planning a pattern, you can use the supplied [URL Parser](URL Parser). A parser can help inspect a URL, but it does not decide which locale structure is right for your site.

Connect equivalent pages with hreflang

When a page has localized equivalents, annotate the versions so search engines can understand their relationship. Each version should list itself and the other equivalent versions, using fully qualified URLs. The annotations should be reciprocal: if the French page points to the English page, the English page should point back to the French page.

For example, include the following in the <head> of each equivalent page, adjusting the canonical page URL where appropriate:

<link rel="alternate" hreflang="en" href="https://example.com/en/products/widget">
<link rel="alternate" hreflang="fr" href="https://example.com/fr/products/widget">
<link rel="alternate" hreflang="fr-CA" href="https://example.com/fr-ca/products/widget">
<link rel="alternate" hreflang="x-default" href="https://example.com/language-selector/products/widget">

Use x-default only for a page intended as the general fallback, such as a language selector or a page that does not target one listed locale. It is optional; do not use it as a substitute for identifying the actual language versions.

Only connect pages that are genuine equivalents. If there is no translated version of an article, do not invent an annotation pointing to an unrelated page. The annotations help describe a site’s alternatives; they do not translate content or guarantee a particular search result.

Keep canonical URLs aligned with localized content

A translated page is generally a distinct page, not a duplicate to consolidate into the default language. Give each indexable locale version a canonical URL that points to that same version:

<!-- On the English page -->
<link rel="canonical" href="https://example.com/en/products/widget">

<!-- On the French page -->
<link rel="canonical" href="https://example.com/fr/products/widget">

Do not canonicalize every translation to the English URL merely because it is the original. That can conflict with the intent to have the localized page available in search. Canonical tags and hreflang serve different purposes: canonical annotations identify a preferred URL for duplicate or very similar pages, while hreflang connects localized alternatives.

Use the same preferred URL consistently in canonical tags, hreflang annotations, XML sitemaps, and internal links. Avoid mixing variants such as HTTP and HTTPS, or URLs with and without a trailing slash, across those signals.

Make language switching preserve the page

A language selector should take a visitor to the equivalent page when that translation exists. For example, switching from /en/products/widget to French should lead to /fr/products/widget, not automatically to the French homepage.

A practical implementation workflow is:

  1. Give each translated page a stable locale-specific URL.
  2. Record which page URLs are translations or regional equivalents in your content system.
  3. Build the language selector from those actual relationships rather than by blindly replacing a path prefix.
  4. If an equivalent is missing, show the available choices or send the visitor to a relevant locale landing page. Make the fallback clear.
  5. Preserve the selected language preference where useful, but keep the choice easy to change.

For example, a French article might not exist even though the product page does. In that case, send the visitor to the French product page if it is genuinely relevant, or present a clear message and language options. Avoid dropping visitors onto a default homepage without explanation.

Do not force a language version solely from a visitor’s IP address or browser settings. Those signals can be wrong, and automatic redirects can make pages harder to access. If you offer a suggested locale, let users choose another one and keep each localized URL directly accessible.

Internal links should normally stay within the visitor’s selected language. A French navigation menu should link to French category and product pages where they exist, rather than routing every click back to English.

For example:

<nav aria-label="Navigation principale">
  <a href="/fr/">Accueil</a>
  <a href="/fr/products/">Produits</a>
  <a href="/fr/support/">Assistance</a>
</nav>

Use a language selector with clear labels, such as “English” and “Français.” Make sure the selector is usable with a keyboard and assistive technology, and that its destinations are normal links to the relevant localized URLs.

Advertisement

Common Mistakes

  • Treating a URL pattern as a ranking guarantee. A subdirectory, subdomain, or country domain does not replace useful localized content and clear site signals.
  • Using a region code as if it were a language. GB identifies a region, not English; use a valid language or language-region identifier such as en-GB when appropriate.
  • Pointing every translation’s canonical tag at the default language. Localized pages that should be independently available generally need their own canonical URLs.
  • Adding one-way or incorrect hreflang links. Keep annotations reciprocal and point only to real, equivalent pages.
  • Building language switches by changing a path prefix blindly. Not every page has a translation at the same path. Use an explicit page relationship and provide a fallback.
  • Redirecting visitors based only on location. Offer language choice and keep localized pages accessible at stable URLs.

Best Practices

  • Select a URL structure your publishing and engineering teams can operate consistently.
  • Keep locale naming, URL casing, trailing-slash behavior, and preferred URL formats consistent.
  • Publish useful localized content at distinct URLs; do not rely on hreflang to create translations.
  • Use self-referencing canonical URLs for distinct localized pages, and connect actual equivalents with reciprocal hreflang annotations.
  • Keep internal links and language-switch destinations in the appropriate locale.
  • Test representative pages in every locale, including pages where a translation is missing. Check that the canonical, language annotations, links, and fallback behavior agree.

Documentation note: Live search-engine documentation could not be retrieved while preparing this guide. The recommendations reflect established implementation practices; confirm current Google Search Central requirements before launch, especially if your site uses an unusual locale setup.

Conclusion

Choose the URL structure that fits your organization and apply it consistently. Give localized content stable URLs, connect true equivalents, keep canonical signals aligned with each version, and make language switching preserve the visitor’s context when possible. Clear fallbacks and user choice make the system more useful when a translation is not available.

What would your domain sell for?

A free TidyURLs account unlocks the Domain Estimator. It prices a name from 191,011 real domain sales.