Skip to content

Optional analytics, session recording and advertising stay off unless you accept. You can reject them and use Transglot. Change your choice anytime in Cookie preferences. Cookie Policy

Back to the blog
Best practices

Subdomain vs Subdirectory vs ccTLD: International URLs (2026)

Subdomain, subdirectory or ccTLD for an international site: what Google documents, what is myth, a decision table and a tested migration plan.

by transglot team
published November 24, 2026
27 min read

Documentation reviewed 24 November 2026.

Quick answer

Google documents four URL structures for an international site: country-code domains (example.de), subdomains (de.example.com), subdirectories (example.com/de/) and URL parameters (example.com?loc=de), and it marks only parameters as not recommended. Google's own guidance on subdomain vs subdirectory is to do what makes sense for your business, and its documentation does not say that one ranks better than the other. The differences that are documented are operational: each hostname has its own crawl budget, its own site name and its own cookies, and a country-code domain can target one country only. For one product in many languages, subdirectories on one generic domain are the least work to run. Choose a structure you can keep, because Google says URL changes take weeks to settle.

Who this guide is for

This guide is for the person who has to decide where the French, German or Canadian version of a site lives, and for the engineer who has to build or move it. At the end you will have:

  • The four options with the pros and cons Google itself lists.
  • A clear split between what Google documents, what its staff have said on the record, and what is industry belief.
  • A decision table by company situation.
  • A migration plan with a script that builds the redirect map.

It covers URL structure only. For the rest of the job (what to translate, language switching, formats, legal pages), see the website localization guide.


Part 1: the four options, in Google's words

Google's page on managing multi-regional and multilingual sites lists four structures with pros and cons. The table reproduces that list without additions.

StructureExamplePros listed by GoogleCons listed by Google
Country-specific domain (ccTLD)example.deClear geotargeting. Server location irrelevant. Easy separation of sitesExpensive, can have limited availability. Requires more infrastructure. Strict ccTLD requirements, sometimes. Can only target a single country
Subdomain on a generic domain (gTLD)de.example.comEasy to set up. Allows different server locations. Easy separation of sitesUsers might not recognize geotargeting from the URL alone: is "de" the language or the country?
Subdirectory on a generic domainexample.com/de/Easy to set up. Low maintenance, same hostUsers might not recognize geotargeting from the URL alone. Single server location. Separation of sites harder
URL parametersite.com?loc=deNone. Marked "Not recommended"URL-based segmentation difficult. Users might not recognize geotargeting from the URL alone

Two things are absent from Google's list. It does not say that any of the first three ranks better, and it does not mention links or authority at all. Every pro and con is about targeting, infrastructure or how readable the URL is.

Google also draws a line that decides most of what follows. A multilingual site offers content in more than one language. A multi-regional site explicitly targets users in different countries. A site can be both.

Four cream paper-pulp signposts on a dark stone plinth, each a different shape: a separate small house, a branch on a shared trunk, a drawer in one cabinet and a loose tag on a string
The four structures Google documents

Part 2: subdomain vs subdirectory, documented fact and myth

The "subdomain vs subdirectory" argument applies to a blog or a shop as much as to a language. Here is what can be checked.

What Google documents

  • The general advice. The SEO Starter Guide has a short entry titled "Subdomains versus subdirectories". It says to do whatever makes sense for your business from a business point of view, and that a site may be easier to manage in subdirectories while other times subdomains make sense.
  • Crawl budget is per hostname. Google's crawl budget guide says its crawling infrastructure defines a site as a unique hostname, and that www.example.com and code.example.com are separate sites with separate crawl budgets. The guide is written mainly for sites with a million or more pages, or 10,000 or more that change daily.
  • Site names are per domain or subdomain. The site names documentation supports one name per domain or subdomain and states that site names are not supported for subdirectories. https://example.com/de/ cannot have its own site name in results. https://de.example.com can.
  • Search Console properties. A Domain property includes all subdomains and protocols. A URL-prefix property covers one prefix, and Google suggests it when you need to limit data to a path such as example.com/es/.

What Google staff have said on the record

In a Google Search Central video published on 21 December 2017, "Subdomain or subfolder, which is better for SEO?", John Mueller said: "Google web search is fine with using either subdomains or subdirectories." In the same video he said that changes to a site's URL structure take time to settle in search, so pick a setup you can keep, that subdomains must be verified and tracked separately in Search Console, and that Google has to learn to crawl subdomains separately, "but for the most part that's just a formality for the first few days."

Search Engine Journal reported on 25 May 2018 that Mueller said in an office hours session, "In general, we see these the same", and that he would personally keep things together as much as possible. That is a press report, not Google documentation.

What is industry consensus, not documentation

  • "Subdirectories inherit the domain's authority, subdomains start from zero." None of the Google pages reviewed for this guide says this. It is a widely held practitioner view, and vendors repeat it: Shopify's help centre says subfolders benefit from the store's existing search ranking and domain authority, and that subdomains "might not benefit as strongly".
  • "Google treats a subdomain as a separate website for ranking." Google documents separate treatment for crawl budget, site names and Search Console, as listed above. It does not document a ranking penalty or a ranking separation.
  • "A ccTLD always outranks a subdirectory in its country." Google calls a ccTLD a strong signal that a site is intended for a country. It does not promise a ranking outcome, and it says geotargeting "isn't an exact science".
Documented: subdomains differ from subdirectories in crawl budget, site names, Search Console and cookies. Not documented: that either one ranks better. The common preference for subdirectories rests on practitioner experience and on lower running cost.
In short

For languages in particular

Google states that it uses the visible content of the page to determine its language, and that it does not use code-level language information such as lang attributes, or the URL. So fr.example.com and example.com/fr/ tell Google nothing about language by themselves. What tells Google that two pages are translations of each other is hreflang, and Google's documentation says alternate URLs do not need to be on the same domain.


Part 3: language, country, or both

/fr/ can mean the French language or France. Decide which before the first URL ships.

You haveStructureExample
One offer, translatedLanguage only/fr/, /de/, /es/
Different offers per country, one language eachCountry, or language and country/de-de/, /fr-fr/
Different offers per country, several languages in someLanguage and country in one segment, or country then language/fr-ca/ and /en-ca/, or /ca/fr/ and /ca/

Use language only when a French speaker in Paris, Montreal and Dakar should get the same page. Add a country when something differs by country: price, currency, catalogue, shipping or legal terms. You need both when one country has more than one language (Canada, Switzerland, Belgium) or one language spans countries with different offers.

Google names the cost of country targeting: it can improve rankings in the target country, "but at the expense of results in other locales or languages".

The order inside the path is your choice. /fr-ca/ matches the hreflang value fr-CA and keeps one segment. /ca/fr/ groups everything for one country under one folder, which suits a URL-prefix property per country. In hreflang the order is fixed: Google requires the language code first, and a country code by itself is not valid.

Do not mix meanings at one level. If /de/ is the German language and /ch/ is Switzerland, there is no place for Swiss German pages. Choose language folders or locale folders and use them everywhere.
Watch out

Part 4: gTLD, ccTLD and the TLDs Google treats as generic

Google lists country-code top-level domains as a signal for the target locale. A ccTLD such as .de or .cn is "a strong signal to both users and search engines" that the site is intended for that country. So example.de is a poor home for content meant for German speakers in Austria.

For generic domains, Google says to set a country target explicitly with locale-specific URLs and hreflang. Its list of what counts as generic has three groups:

  • Generic TLDs. Unless ICANN lists a TLD as a country code, Google treats any TLD that resolves through the IANA DNS root zone as a gTLD. Examples given: .com, .org, .edu, .gov.
  • Generic regional TLDs. .eu and .asia are treated as generic.
  • Country codes treated as generic. Google says users and site owners often see these as generic. The list, which Google notes may change: .ad, .ai, .as, .bz, .cc, .cd, .co, .dj, .fm, .io, .la, .me, .ms, .nu, .sc, .sr, .su, .tv, .tk, .ws.

A product on .io, .ai or .co is on a generic domain as far as Google is concerned.

The retired country setting

Search Console used to have an International Targeting report where a property could be assigned to a country. Google's help page now reads "The International Targeting report is deprecated", says that country targeting in Search Console "was determined to have little value for the ecosystem, and is no longer supported", and confirms that Google continues to support and use hreflang. The help page gives no date. Google Search Central announced the deprecation on 24 August 2022, and Search Engine Roundtable reported at the time that, per a notice in Search Console, the report would go away after 22 September 2022. Any guide that tells you to set a target country in Search Console predates this.

Bing

Bing's public statement on this is old. A Bing Webmaster Blog post of 1 March 2011 lists its document location signals in priority order: the content-language meta tag, the content-language HTTP header, the top-level domain, then reverse IP lookup. It says only ccTLDs influence document location and that .com, .net and .org do not. It does not compare subdomains with subdirectories. The post is no longer on the live blog and was read from an archived copy, so treat it as history.


Part 5: how each structure behaves in practice

Each row is limited to statements that can be checked in the source named.

ConcernSubdirectorySubdomainccTLDSource
Link equityNot addressed by Google per structure. Permanent redirects do not lose PageRank, and hreflang works across domainsSameSameGoogle site move and localized versions docs
Crawl budgetOne hostname, one budgetOne budget per hostnameOne budget per hostnameGoogle crawl budget guide
Site name in resultsOne name for the whole hostOne per subdomain. Falls back to the domain's name if the subdomain has no WebSite structured dataOne per domainGoogle site names docs
Search ConsoleOne Domain property covers it. A URL-prefix property per folder is optionalCovered by the Domain property of the parentOne property per domainSearch Console help
Analytics (GA4)One domain, no extra setupGoogle advises all subdomains use the same cookie domain to avoid self-referralsDifferent root domains count one visitor as separate users unless cross-domain measurement is set upGoogle Analytics help
Cookies and sessionsShared: one hostHost-only by default. A cookie set with Domain=example.com is sent to all subdomainsNot shareable: a cookie's Domain must be the server's own domain or a parent of itMDN, Set-Cookie
Server location and CDNSingle server location, per Google's listAllows different server locationsServer location irrelevantGoogle multi-regional docs
TLS certificatesOne nameOne certificate can hold several names, and a wildcard is possible. Let's Encrypt issues wildcards only through the DNS-01 challengeA name per domain, on one certificate or severalLet's Encrypt FAQ
Engineering cost"Low maintenance (same host)""Easy to set up""Requires more infrastructure", "Expensive"Google multi-regional docs

Two notes on the table.

Server location. Google lists the server's IP location as a signal and immediately qualifies it: some sites use CDNs or host in a country with better infrastructure, "so it is not a definitive signal". Hosting in the target country is not required.

Sign-in across markets. With ccTLDs, a visitor who signs in on example.de is not signed in on example.fr, because a browser will not accept a cookie for another registrable domain. Subdirectories avoid the problem. Subdomains can share a cookie by setting Domain to the parent.


Part 6: details inside the URL

Translated slugs or not

Google says it is fine to use localized words in the URL or an internationalized domain name, asks for UTF-8 encoding, and reminds you to escape URLs properly when linking. So /de/preise and /de/pricing are both acceptable. Google does not document a ranking benefit for either.

The trade-off is practical. Translated slugs read naturally to visitors. They also mean a page's path differs per language, so the language switcher, the hreflang set and every redirect need a lookup table between slugs. If nobody will maintain it, keep one slug across languages.

Trailing slashes and case

Google treats example.com/fr and example.com/fr/ as separate URLs, and the root is the only exception: https://example.com and https://example.com/ are equivalent. Pick one form for locale roots and inner pages, redirect the other to it, and use the chosen form in canonicals, hreflang and sitemaps.

Google's URL handling is case sensitive: /FR/ and /fr/ are distinct URLs. If your server treats them the same, Google asks you to convert all text to one case. The hreflang value is case-insensitive, so lowercase in the path (/fr-ca/) and the ISO form in the attribute (fr-CA) can coexist.

Default language at the root or under a prefix

There are two valid layouts.

LayoutEnglishFrenchFits
Default at rootexample.com/pricingexample.com/fr/pricingAn existing site adding languages. No existing URL changes
Every language prefixedexample.com/en/pricingexample.com/fr/pricingA new site, or one where no market is "the default"

Prefixing everything is symmetrical, but on an existing site it changes every URL, and the bare root needs a decision: a language selector page or a redirect to one language.

x-default

hreflang="x-default" names the page for visitors whose language matches none of your versions. Google says it was designed for language selector pages and works best with those, and it also suggests it for auto-redirecting home pages. With the default language at root, it usually points at the root URL.

The same four lines go in the head of all three pageshtml
<link rel="alternate" hreflang="en" href="https://example.com/pricing" />
<link rel="alternate" hreflang="fr" href="https://example.com/fr/pricing" />
<link rel="alternate" hreflang="fr-CA" href="https://example.com/fr-ca/pricing" />
<link rel="alternate" hreflang="x-default" href="https://example.com/pricing" />

Every version lists every version, itself included, with absolute URLs, and the links must be returned or Google ignores them. Chapter 1, the hreflang guide, covers the codes, the three placements and the common errors.

Never switch content on one URL

Google calls a page that returns different content based on the visitor's perceived country or preferred language locale-adaptive, and warns that it might not crawl, index or rank all of that content. The reasons it gives: Googlebot's default IP addresses appear to be based in the USA, and the crawler sends requests without an Accept-Language header.

Google's recommendation is separate URLs per locale, annotated with hreflang. It also says not to use IP analysis to adapt content, and to avoid automatically redirecting users from one language version to another. Suggest another version in a notice and show a language switcher instead.

One URL, one language, every time. Request any locale URL with no cookies and no Accept-Language header: the response should be that locale, with status 200.
Rule
A row of cream paper-pulp doors on a dark stone plinth, each with its own short path leading to it, and one teal glass door handle on the door marked as the fallback
One URL per locale, plus a fallback

Part 7: real sites, one per structure

Each of these was opened on 24 November 2026. Only the structure is described. Nothing here is a claim about why a company chose it or how it performs.

  • Country-code domains: Airbnb. airbnb.fr returns a page with lang="fr", airbnb.de returns lang="de", and airbnb.co.uk returns lang="en-GB".
  • Subdomains by language: Wikipedia. de.wikipedia.org and fr.wikipedia.org are separate hostnames per language, not per country. Page names are translated: the German main page path ends in Hauptseite, the French in Accueil_principal.
  • Subdirectories, country then language: Apple. apple.com/de/ is annotated de-DE, apple.com/ca/ is en-CA, and apple.com/ca/fr/ is fr-CA. The United States sits at the root as en-US. IKEA uses the same order with both segments always present: ikea.com/ca/fr/ returns lang="fr-CA", ikea.com/ch/fr/ returns fr-CH.
  • Subdirectories, language and country in one segment: Stripe. stripe.com/fr-ca returns lang="fr-CA".
  • URL parameters: Google's developer documentation. The page that marks parameters "Not recommended" is itself served per language with ?hl=fr and ?hl=ar, and lists those parameter URLs in its hreflang annotations. Parameters can be made to work. They are harder to segment and to read.

Part 8: a decision table by company situation

These are fits, not a ranking. Each line follows from the properties in Parts 1 and 5.

SituationStructure that fitsWhy
One product, many languages, same offer everywhereLanguage subdirectories on one generic domain: /fr/, /de/One host, one certificate, one deployment, shared cookies. Google lists it as low maintenance
Several countries with different catalogues or pricesLocale subdirectories (/fr-ca/, /en-ca/), or ccTLDs if each country runs its own siteThe URL must carry the country. Subdirectories keep one platform. ccTLDs give the clearest country signal and full separation
A legal entity per country, with its own team, hosting or compliance rulesccTLDs, or subdomains on separate infrastructureGoogle lists easy separation of sites for both. A subdomain allows a different server location
A small team with no dedicated infrastructure engineerSubdirectories, default language at rootNothing existing moves, and there is one of everything to maintain
A market that needs local hosting or a separate stackA subdomain for that market, subdirectories for the restMixing is allowed. hreflang does not require one domain
A platform that cannot route paths per languageSubdomainsOften the only option a hosted tool offers
A SaaS company on example.io sells one product in English, German and Japanese at the same prices. Google treats .io as generic. Language subdirectories, with English at the root, add two folders and change no existing URL.
Example

Part 9: migrating from one structure to another

Moving from subdomains or ccTLDs to subdirectories, or the reverse, is what Google calls a site move with URL changes. Its documentation sets expectations:

  • How long. A small to medium site can take "a few weeks" for most pages to move, and larger sites longer. Google has to visit every old and new URL at least once, and the move happens per URL.
  • Rankings. Expect temporary fluctuation. Google also says that 301 and other permanent redirects do not cause a loss in PageRank.
  • Redirects. Keep them as long as possible, "generally at least 1 year".
  • Scope. Change one thing at a time. Google's Change of Address page adds that combining a move with a redesign of content and URL structure will probably cause some traffic loss.

The plan

  1. Inventory the old URLs. Start from sitemaps, server logs and the Links report in Search Console. Include images and downloads.
  2. Build the map from old to new. One row per old URL. The script below generates it for locale moves.
  3. Prepare the new URLs. Each new URL gets a self-referencing canonical. Update every hreflang annotation to the new URLs. Update internal links and the language switcher.
  4. Verify both sides in Search Console. Verify every old hostname and the new one before the move.
  5. Switch on server-side permanent redirects. Google recommends 301 or 308, each old URL to its exact counterpart. Do not send everything to the home page: Google may treat that as a soft 404. Avoid chains. Googlebot follows up to 10 hops, and Google advises redirecting straight to the final URL.
  6. Submit the new sitemap, and keep the old one submitted for a while so you can watch its indexed count fall.
  7. File a Change of Address where it applies. See the table below.
  8. Monitor. Watch indexed pages for old and new, crawl errors and server load. Google says it temporarily crawls a moved site more heavily than usual.
  9. Update external links you control: profiles, ads and partner sites.
MoveChange of Address tool
example.fr to example.com/fr/Applies. Google says the tool can move a domain to a path within another domain. File it for every verified variant of the old domain
fr.example.com to example.com/fr/The source must be a property at domain or subdomain level, which fr.example.com is. The tool runs pre-move checks and reports whether the request can continue
example.com/fr/ to fr.example.com or example.frDoes not apply. Google states that properties at the path level cannot be moved with the tool. Use redirects and sitemaps
example.com/french/ to example.com/fr/Does not apply. Paths within the same domain need redirects only

After a Change of Address, Google forwards signals for 180 days and asks you to keep redirects for at least that long. It also advises moving several old sites into one new location one at a time, waiting for traffic to stabilize between moves.

A script that generates the redirect map

This Node.js script reads a list of old URLs, works out each one's locale from its hostname, and writes the new subdirectory URL. It reports URLs it cannot map and flags any target that is itself redirected. It was run for this guide on Node.js 22.15.1 with the six sample URLs shown, and the output below is what it printed.

No dependencies. Edit OLD_HOSTS, NEW_ORIGIN and DEFAULT_LOCALE for your sitejs
// redirect-map.mjs: build a 301 map from old locale URLs to new ones.
// Usage: node redirect-map.mjs old-urls.txt > redirects.csv
import { readFileSync } from "node:fs";
// Where each locale lives today. Keys are hostnames of the old site.
const OLD_HOSTS = {
"www.example.com": "en",
"fr.example.com": "fr",
"de.example.com": "de",
"www.example.ca": "en-ca",
};
// Where everything goes. The default locale stays at the root.
const NEW_ORIGIN = "https://www.example.com";
const DEFAULT_LOCALE = "en";
function target(oldUrl) {
const url = new URL(oldUrl);
const locale = OLD_HOSTS[url.hostname.toLowerCase()];
if (!locale) return null;
const prefix = locale === DEFAULT_LOCALE ? "" : `/${locale}`;
// Keep the path, its trailing slash and the query string as they are.
return `${NEW_ORIGIN}${prefix}${url.pathname}${url.search}`;
}
const oldUrls = readFileSync(process.argv[2], "utf8")
.split("\n")
.map((line) => line.trim())
.filter(Boolean);
const map = new Map();
const unmapped = [];
for (const oldUrl of oldUrls) {
const newUrl = target(oldUrl);
if (!newUrl) unmapped.push(oldUrl);
else if (newUrl !== oldUrl) map.set(oldUrl, newUrl);
}
// A target that is itself redirected would create a chain.
const chains = [...map.values()].filter((newUrl) => map.has(newUrl));
console.log("old_url,new_url");
for (const [oldUrl, newUrl] of map) console.log(`${oldUrl},${newUrl}`);
console.error(`${map.size} redirects, ${unmapped.length} unmapped, ${chains.length} chains`);
for (const url of unmapped) console.error(`unmapped: ${url}`);
for (const url of chains) console.error(`chain: ${url}`);
if (unmapped.length || chains.length) process.exitCode = 1;
Real output. The English URL needs no redirect, and the Spanish host is reported because it is not in OLD_HOSTStext
$ node redirect-map.mjs old-urls.txt
old_url,new_url
https://fr.example.com/,https://www.example.com/fr/
https://fr.example.com/tarifs/,https://www.example.com/fr/tarifs/
https://de.example.com/preise?plan=team,https://www.example.com/de/preise?plan=team
https://www.example.ca/pricing,https://www.example.com/en-ca/pricing
4 redirects, 1 unmapped, 0 chains
unmapped: https://es.example.com/precios

The script exits with status 1 when a URL is unmapped or a chain exists, so it can gate a deployment. It maps hostname to prefix only. If slugs also change, add a lookup from old path to new path inside target. Turn the CSV into your server's or CDN's redirect rules, then request each old URL and confirm one hop to the expected target.

A cream paper-pulp railway turntable on a dark stone plinth with several short tracks merging into one long track, a small teal glass signal lamp at the junction
Several old hosts, one new origin, one hop each

Part 10: framework and platform notes

Each note is limited to what the tool's own documentation states.

Next.js

The Next.js internationalization guide (App Router, current docs) says routing can be internationalized by sub-path (/fr/products) or by domain (my-site.fr/products). Its example nests all routes under app/[lang], and uses a proxy.js file that checks whether the pathname already contains a supported locale and, if not, redirects to one chosen from the Accept-Language header. The matcher in that example carries a commented option to run only on the root URL. The redirect applies only to paths with no locale, so a prefixed URL is served as requested. See translate a React or Next.js app automatically for keeping the dictionaries translated.

Astro

Astro's i18n routing is configured with locales and defaultLocale. prefixDefaultLocale is false by default: the default language has no prefix and every other locale does. Set to true, every URL is prefixed and unprefixed URLs return 404 unless a fallback is configured. redirectToDefaultLocale: true makes / redirect to the default locale's prefix. For subdomains or ccTLDs, i18n.domains (added in Astro 4.9.0) maps a locale to its own origin, such as fr: "https://fr.example.com". Astro documents it for server-rendered projects on the @astrojs/node or @astrojs/vercel adapter with site configured.

WordPress

WordPress.org states that WordPress does not support a multilingual site out of the box, and describes plugin approaches, including one post per language and a separate site per language in a Multisite network. URL structure therefore depends on the plugin. WPML, as one documented example, offers three formats: languages in directories, a different domain or subdomain per language, and the language as a parameter. WPML can also place the default language in a directory. Best CMS translation tools for content teams compares the wider options.

Shopify

Shopify's international domains documentation supports top-level domains (example.fr), subdomains (fr.example.com) and subfolders (example.com/fr-fr), alone or combined. It recommends subfolders for a first Shopify Markets setup. Language-only subfolders such as /fr can exist only on the primary market, and secondary markets combine language and country, as in /fr-ca. Shopify creates hreflang tags automatically for every international domain or subfolder, and its sitemaps include all published languages. Automatic domain redirection is a setting, and Shopify notes that customers in the European Union are not automatically redirected within the EU. More in AI translation for Shopify stores.


Doing this with Transglot

Transglot is a continuous localization platform: it translates strings and content, and four checks run on every string before it is written. What its documentation says about URLs is limited to two things.

  • WordPress. The WordPress integration publishes approved translations to the connected site with localized URLs and a language switcher. The switcher and URL settings are configured in the plugin.
  • Code-built sites. Routing is the framework's job. The runtime SDKs deliver translated strings. The Astro package, for example, reads the locale from Astro's own currentLocale when you use Astro's i18n routing. The decision in this guide is made in your framework's config, and locale files stay in your repository, as described in localization as code.

Limits: the documentation describes no feature that creates subdomains or subdirectories for a code-built site, and runtime delivery, the CLI, the GitHub Action and the API start on the Starter plan.


Common mistakes

  • Choosing by ranking folklore. Google documents no ranking difference between subdomains and subdirectories. Choose on operations.
  • A ccTLD for a language. .de targets Germany, not German speakers.
  • Language and country at the same folder level. /de/ and /ch/ side by side leave no home for Swiss German.
  • One URL that changes language by IP or Accept-Language. Googlebot sees one version.
  • Mixed case or mixed trailing slashes. /FR/, /fr and /fr/ are three URLs to Google.
  • Translated slugs with no map. The switcher and hreflang then point at pages that do not exist.
  • Redirecting every old locale URL to the new home page. Google may treat it as a soft 404.
  • Removing redirects after a few months. Google's guidance is at least a year.

Checklist

Copy into the ticket for the launch or the movetext
[ ] Decided: multilingual, multi-regional, or both
[ ] Folder meaning fixed: language (/fr/) or locale (/fr-ca/), never mixed
[ ] TLD checked against Google's generic list
[ ] Structure chosen on operations: hosts, certificates, cookies, teams
[ ] Default language at root or prefixed: decided and documented
[ ] Lowercase paths and one trailing slash rule, with redirects for the rest
[ ] Slug policy decided, and a slug map kept if slugs are translated
[ ] Every locale URL returns its language with no cookies and no Accept-Language
[ ] hreflang on every version, self included, absolute URLs, x-default set
[ ] Self-referencing canonical on every locale URL
[ ] No automatic redirect between locale URLs
[ ] Search Console: Domain property, plus URL-prefix properties per folder if needed
[ ] Analytics: one cookie domain across subdomains, cross-domain setup across ccTLDs
[ ] Migration only: redirect map generated, zero unmapped, zero chains
[ ] Migration only: 301 or 308 per URL, new sitemap submitted, Change of Address filed where it applies
[ ] Migration only: redirects kept for at least one year

Frequently asked questions

Subdomain vs subdirectory: which is better for SEO?

Google's documentation says to do what makes sense for your business, and John Mueller said in a December 2017 Google video that Google web search is fine with either. No Google page reviewed here states a ranking advantage for one. Many practitioners prefer subdirectories from experience, and they are less work to run: one host, one certificate and shared cookies.

Is a subfolder the same as a subdirectory?

Yes. Both mean a path segment on the same host, as in example.com/fr/. Google's documentation says subdirectory, Shopify says subfolder and WPML says directory.

ccTLD vs subdirectory: when is a country domain worth it?

When the business targets a country, not a language, and can afford a separate domain per market. Google lists clear geotargeting and easy separation of sites as the pros, and cost, more infrastructure and targeting a single country as the cons. A ccTLD also splits cookies and analytics by domain.

What is the best URL structure for a multilingual website?

For one offer in several languages, language subdirectories on a generic domain: /fr/, /de/. Each language gets its own URL, which is what Google recommends, and everything else stays on one host. Add hreflang between the versions.

Do I need both a language and a country in the URL?

Only if content differs by country, or one country has several languages. /fr/ serves all French speakers. /fr-ca/ or /ca/fr/ serves French speakers in Canada with Canadian prices or terms. Google warns that country targeting comes at the expense of results in other locales.

How long does a move from subdomains to subdirectories take?

Google says a small to medium site can take a few weeks for most pages to move, and larger sites longer, with temporary ranking fluctuation. Keep redirects for at least a year. In the Change of Address tool, signals are forwarded for 180 days.


How this guide was checked

  • Parts 1, 3, 4 and 6 follow Google Search Central's pages on multi-regional and multilingual sites, localized versions, locale-adaptive pages and URL structure, and Google's 2010 post on trailing slashes.
  • Part 2 follows the SEO Starter Guide, the crawl budget guide, the site names documentation and Search Console help. The 2017 video's title, channel and date were confirmed on YouTube. Its quotes were read from Search Engine Roundtable's transcript of 24 January 2018, not from Google's captions. The 2018 quotes come from a Search Engine Journal report.
  • The International Targeting dates come from Search Engine Roundtable's report of Google's announcement. Google's help page confirms the deprecation and gives no date.
  • Bing's signals come from an archived copy of a 2011 Bing Webmaster Blog post. The current Bing Webmaster Guidelines page could not be read in this session and is not cited.
  • Part 5 follows the sources named in its table: Google, Google Analytics help, MDN and the Let's Encrypt FAQ.
  • Part 7: each example site was requested on 24 November 2026 and its URL and lang or hreflang values read from the response. A site may answer differently from another country.
  • Part 9 follows Google's site move and Change of Address pages. The script was run on Node.js 22.15.1, and the output shown is what it printed. It was not run against a production site, and no server redirect configuration was tested.
  • Part 10 follows the Next.js, Astro, WordPress.org, WPML and Shopify documentation. None of the framework setups was built or benchmarked for this guide.
  • Not tested: ranking effects of any structure. No tool or site named here was benchmarked.

Sources

colophon

Who wrote this, and what to read next

wrote this

transglot team

The byline on this post has no profile yet. Author profiles are managed alongside the posts themselves.

Engineering
Best practices
keep reading

Best CMS Translation Tools for Content Teams

Compare the best CMS translation tools for content teams. Explore six options, current pricing, connector limits and a practical pilot before you buy.

September 14, 2026
32 min read
keep reading

How to Translate a React or Next.js App Automatically

The three parts of automatic translation in a React or Next.js app, the tools that cover each part, and a setup that keeps every language current on each push.

November 23, 2026
8 min read
keep reading

The Best AI Tools to Translate a Shopify Store in 2026

Compare four ways to translate a Shopify store with AI, what each one translates, how each is priced, and which fits a store of your size.

November 23, 2026
10 min read
works with what you already run

41 connectors, already built.

the pipeline this post describes

Try it on your own strings. Free, no card.

Free plan: 100,000 words to start (25,000 at sign-up, 75,000 after a phone check), then 10,000 a month, 15 locales including your source, 3 seats.