Orofold Labs

Launching soon

Notes Get in touch

Search 4 min read Updated

Domains, subdomains or folders for countries

In short

Choose a country domain, a subdomain or a subdirectory for each market, and then set the target explicitly with hreflang and clear signals.

A business that serves several countries or languages has to decide how its URLs are organised, and that choice shapes the signals search engines receive. Start by picking one target country for each section of the site, then label that target clearly. Google describes four common URL options, each with its own advantages and drawbacks.

Four URL options

Google’s guide to managing multi-regional and multilingual sites lists the options below with the advantages and drawbacks it describes.

OptionExampleAdvantages Google listsDrawbacks Google lists
Country-specific domainexample.deClear geotargeting; server location irrelevant; easy separation of sitesExpensive, may have limited availability, needs more infrastructure; can target only one country
Subdomains with a generic domainde.example.comEasy to set up; allows different server locations; easy separationUsers may not tell from the URL whether “de” means a language or a country
Subdirectories with a generic domainexample.com/de/Easy to set up; low maintenance on the same hostSingle server location; separation is harder; geotargeting is not clear from the URL
URL parametersexample.com?loc=deNone listedMarked as not recommended; URL-based segmentation is difficult

Country-specific domains can also carry strict requirements, and some countries restrict who may use their domain. Check the registry rules before you choose one.

The signals that decide the country

Several signals combine to show which country a page targets:

  • Country code domains: a strong signal of country intent.
  • hreflang: annotations in tags, HTTP headers or sitemaps.
  • Server location: not definitive, because CDNs and hosting choices can hide it.
  • Local content: addresses and phone numbers, the local language and currency, links from local sites and Business Profile data.

Google ignores locational meta tags such as geo.position, along with geotargeting attributes in HTML. Do not use IP analysis to adapt your content.

Working on something similar in your own product? A few honest sentences are enough – we read every enquiry and reply by email. Apply with your idea

Setting the country target

For generic domains with subdomains or subdirectories, Google recommends an explicit country target, set through hreflang (in HTML, HTTP headers or sitemaps). It regards the three hreflang methods (HTML link tags, HTTP headers and sitemaps) as equivalent, so pick the one your site can maintain. Do not combine all three, because that adds management effort without any benefit in Search.

Every annotation must be bidirectional. If page X points to page Y, page Y must point back to X, or Google ignores the tags. Use x-default for the fallback page shown when no language or region matches. Language codes use ISO 639-1, and region codes use ISO 3166-1 Alpha 2. Reserved codes such as EU, UN or UK have no effect on Search. For the detail, read the article on hreflang for multilingual sites, and Google’s guide on telling Google about localised versions of your page.

The trade-off to accept

The guide is clear about the central trade-off: geotargeting can improve rankings in the target country, but at the expense of results in other locales or languages. Narrowing a page to one country can therefore reduce its visibility elsewhere. Decide the target country for each section before you start, and document the choice so that the team keeps to it.

A checklist for multi-regional sites

  1. List each country and language pair you serve, and name the audience for each one.
  2. Choose one URL option, based on your budget, your infrastructure and the number of markets.
  3. Add hreflang with return links to every version, and include x-default for the fallback page.
  4. Use valid ISO codes, and do not rely on IP detection to change the content.
  5. Check the canonical tags of each version, so that each market keeps its own page. See Canonical URLs when one page has many addresses and multilingual EU web architecture.
  6. Review the Search Console performance report for each market once a few weeks of data have built up.

This article summarises Google’s guide to managing multi-regional sites and its documentation on localised versions. Google’s guidance can change, and the right structure depends on your business, so check the current pages before you make a decision.

Sources and limits

Common questions

Are URL parameters a good way to target countries?
Google marks URL parameters as not recommended, and says that URL-based segmentation is difficult with them.
Does server location decide the country?
No. Google says server location is not definitive, because CDNs and hosting choices can hide where a site is served from.
Do geo meta tags tell Google the country?
Google says it ignores locational meta tags such as geo.position, and geotargeting attributes in HTML.

Sources

  1. Managing Multi-Regional and Multilingual Sites, Google Search Central. Accessed 24 November 2026
  2. Tell Google about localized versions of your page, Google Search Central. Accessed 24 November 2026

Further reading

Have an idea that should exist? Or a working product that needs more customers, a new website or a complete rework? Bring us anything. Apply with your idea

All notes