DELTAWEB
All posts
Technical SEO

Language-Country Folders: /en-us/, /en-gb/, /de-at/ Guide

When does a language-country folder make sense? See how /en-us/, /en-gb/ and /de-at/ work with hreflang, avoid duplicate content and follow a checklist.

Language-Country Folders: /en-us/, /en-gb/, /de-at/ Guide
9 minReading time
Arif KuruAuthor

A procurement manager in Germany opens your site and sees two English options in the header: one for the United States, one for the United Kingdom. On the product pages, prices, lead times and copy look almost identical. Which of these two URLs should Google show to which buyer? (hypothetical example) That is exactly the question a language-country folder structure is meant to answer, and when it is built badly, it only makes the question harder.

This guide explains what folders such as /en-us/, /en-gb/ and /de-at/ do, how hreflang pairs them, where the duplicate content risk comes from, and which markets really need this structure. For the broader framework, start with our international site architecture pillar; this article focuses on the language and country layer of those decisions.

Key Takeaways

  • A language-country folder puts an ISO 639-1 language code and an ISO 3166-1 alpha-2 country code in the URL path.
  • The correct country code for the United Kingdom is "gb"; "uk" is a common but incorrect choice.
  • A folder pays off only when there is a real market difference: price, delivery, regulation or terminology.
  • Every version should reference all matching versions with hreflang, including itself, and point its canonical to itself.
  • Publishing the same text in several folders creates duplicate content risk. Differentiate the pages or consolidate them.

What is a language-country folder and which codes does it use?

A language-country folder is a subdirectory that shows both the language and the target country in the first level of the URL path. Pages under /en-us/ address English speakers in the United States, pages under /en-gb/ address the United Kingdom, and pages under /de-at/ address German speakers in Austria. The folder decision is tied to your domain choice; we compared ccTLDs and subdirectories in our ccTLD guide, and the architectural difference between multiregional and multilingual sites is covered in our architecture guide.

The codes come from two separate standards, and mixing them up is one of the most common errors:

  • Language code: a two-letter code from ISO 639-1. "en" means English, "de" means German.
  • Country code: a two-letter code from ISO 3166-1 alpha-2. "us" is the United States, "at" is Austria, and "gb" is the United Kingdom.
  • Order: language first, country second. "us-en" is invalid; the correct form is "en-us".

The table below lists common folders and general market notes. Market notes are general; legal and tax details are outside the scope of this article.

FolderLanguageCountryMarket note
/en-us/EnglishUnited StatesUSD pricing and US trade terminology
/en-gb/EnglishUnited KingdomGBP pricing and British spelling
/de-at/GermanAustriaAustrian German wording and local product copy
/de-de/GermanGermanyStandard German version for Germany

When does a country folder really pay off?

Opening a folder for every country is not a goal in itself. A folder earns its place when it gives the visitor a genuinely different experience. Each extra folder adds maintenance work, multiplies content updates and raises the chance of hreflang errors. Five questions help you decide:

  1. Are prices or currencies different in this market?
  2. Do delivery times, stock levels or minimum order quantities vary by country?
  3. Do product labels, warranty or compliance texts differ?
  4. Is the terminology different? In some industries the same product has different names in British and American English.
  5. Do search queries and conversion data from this market justify a page of its own?

If at least two of the five answers are yes, a country folder is usually justified. If none of them are, one English version with a clear language and region selector is often enough. The right threshold depends on the market, so decide it with your own sales and search data rather than a universal rule.

Keep the two dimensions apart. Language differences and country differences are not the same thing. Two English-speaking markets may share almost identical copy and differ only in price or delivery; in that case the country layer matters and the language layer does not.

Example: how a three-market exporter decides (hypothetical example)

Imagine a manufacturer of industrial valves that sells to the United States, the United Kingdom and Austria (hypothetical example). Its US and UK buyers pay in different currencies and expect different lead time commitments, so each gets its own folder. Austrian buyers read German, but the product catalogue is the same as Germany's. The team therefore opens one /de-at/ folder with localized delivery and contact details, and leaves /de-de/ as a decision for later, to be made once the data supports it.

MarketFolderReason to splitDecision
United States/en-us/USD prices, US lead timesOwn folder
United Kingdom/en-gb/GBP prices, British spellingOwn folder
Austria/de-at/Austrian German, local delivery termsOwn folder
Germany/de-de/Same catalogue as Austria at the startPostponed until data justifies it

How hreflang pairs the folders

The hreflang attribute tells search engines which language and country versions belong together. It can be placed in the head section of each page or in an XML sitemap. The core logic is simple: every version lists all matching versions, including itself. The sample below uses a hypothetical exporter domain:

<link rel="alternate" hreflang="en-us" href="https://www.ornek-ihracatci.com/en-us/vana-serisi/" />
<link rel="alternate" hreflang="en-gb" href="https://www.ornek-ihracatci.com/en-gb/vana-serisi/" />
<link rel="alternate" hreflang="de-at" href="https://www.ornek-ihracatci.com/de-at/vana-serisi/" />
<link rel="alternate" hreflang="x-default" href="https://www.ornek-ihracatci.com/en-us/vana-serisi/" />

Four rules hold the set together:

  • Return links: the en-us page must reference en-gb and de-at, and both of those must reference en-us. One-way annotations are often ignored.
  • Self-reference: every page lists its own language-country value.
  • x-default: names the fallback page for visitors whose language or country matches no version. Details are in our hreflang x-default guide.
  • Absolute, canonical URLs: every href must be a full URL that matches the canonical address of its page exactly.

hreflang is a hint, not a redirect. Correct tags do not guarantee that the matching version is shown to every user. Google weighs the language of the content, the page text itself and other signals together, so treat hreflang as one part of a consistent structure rather than a fix on its own.

Duplicate content: what happens when the same text sits in three folders?

This is the biggest risk. When the same English text is published under /en-us/, /en-gb/ and /en/, search engines may treat those pages as duplicates. One version gets chosen and the others become hard to find in results. (hypothetical example) An exporter had three English folders, each with the same product copy. British buyers were seeing the US page in search results, while the sterling pricing and the UK delivery note were not surfacing anywhere.

How to tell duplicates apart

  • Make price, currency and delivery information genuinely different on each page.
  • Add country-specific FAQs. Customs paperwork or payment methods, for example, often vary by market.
  • Apply real differences in spelling, units and terminology.
  • Share local references, certifications or logistics details only when they actually exist. Never invent them.

If you are weighing two English versions that are nearly identical, the variant question deserves its own review. We cover it in one language, many countries.

Keep canonicals consistent with hreflang

Each page should declare its own address as canonical. If a page's canonical points to another language or country version, the hreflang pairing breaks. This is one of the most frequent technical errors in badly built folder structures. If your review concludes that one English version is enough, remove the extra folders and consolidate with 301 redirects to a single page; that resolves the problem at the root.

Selector design and redirect behaviour

A visible language and country selector is the cleanest solution for both users and search engines. The choice can be remembered in the browser. Automatically sending a visitor to another folder based on IP address on first load, however, is a risky pattern.

Why is IP-based redirecting risky? Search engine crawlers come from specific locations and can be pushed into one folder regardless of the page they request. That makes the other versions harder to crawl. When the visitor can see which version they are on and switch freely, the problem largely disappears.

Every version also needs links between equivalent pages. A visitor on a product page should be able to reach the same product in another folder with one click. Our article on cookie- or session-based language switching explains why selectors that depend on cookies or sessions can keep the alternate versions out of reach for crawlers.

Verifying the setup: sitemap and monitoring

Checking tags by hand stops being practical once the page count grows. Keep a matching table: one row per product, one column per language-country version, and the full address in each cell. Compare that table against your sitemap and your page tags.

  • The hreflang entries in the sitemap and the tags in the page head must agree.
  • Every URL must appear reciprocally in the set of all its matching versions.
  • Redirecting addresses should not appear in the sitemap; list only final URLs.
  • If a version is missing or returns a 404, remove its tag from the set as well.

Review the indexing and page reports in Search Console regularly. Seeing which versions are indexed and which are flagged as duplicates shows the health of the folder structure. Problems that nobody reads for months tend to pile up quietly.

Common mistakes

MistakeEffectFix
Using "uk" as the country codeThe tag does not match the intended marketUse "gb"
Reversed codes such as "us-en"Invalid value, ignoredUse the en-us format
Missing return tagsOne-way annotations are ignoredLink every version reciprocally
No x-defaultNo defined fallback for unmatched visitorsMark the main version as x-default
IP-based automatic redirectsCrawlers may struggle to reach other versionsUse a visible selector and user choice
Sitemap and page tags disagreeMixed signalsGenerate both from one source

Checklist

  1. Is the market decision documented in a written table?
  2. Does every folder carry at least one market-specific content difference?
  3. Are the codes ISO compliant (gb, not uk)?
  4. Does every page have reciprocal hreflang tags and a self-reference?
  5. Is x-default defined?
  6. Do canonical addresses match the hreflang addresses?
  7. Is there no IP-based automatic redirect?
  8. Are the sitemap and page tags generated from the same source?

Conclusion and next step

A language-country folder structure creates value when the market is real and the pairing is correct. Without those two conditions, it mainly produces duplicate content. Measure the market differences honestly first, then build the URL structure and the hreflang set. Your next step is to write a market table with one question per market and answer each question with data before you touch a single URL. If you would like an outside review of your market table and folder plan, DeltaWeb can help you assess it.

FAQ

Frequently Asked Questions

  • What is a language-country folder?

    A language-country folder is a subdirectory that shows both the language and the target country in the URL, such as /en-us/ for English speakers in the United States. Combined with hreflang, it connects the market versions of the same content so search engines can match them.

  • Do I need a separate folder for every country?

    No. A folder is justified only when there is a real market difference such as price, delivery, regulation or terminology. Without those differences, one version with a clear selector is usually enough.

  • What happens if en-us and en-gb pages have identical content?

    Search engines may treat them as duplicates, choose one and leave the others in the background. The fix is to add genuine market differences to each page, or to consolidate into a single English version with 301 redirects.

  • How is an hreflang tag written?

    Each version lists all matching versions, including itself, using a language-country value such as en-us. The annotations must be reciprocal, and every href must be a full canonical URL. The tags can sit in the page head or in an XML sitemap.

  • What does x-default do?

    x-default names the fallback page for visitors whose language and country do not match any version. It is usually the main or broadest version. Leaving it out means there is no defined path for unmatched visitors.

  • Is the UK country code UK or GB?

    The correct code is GB. The ISO 3166-1 alpha-2 code for the United Kingdom is gb, and using uk produces a tag that does not match the intended market.

  • Is redirecting visitors by IP address to the right folder a good idea?

    Usually not. Automatic redirects can make it harder for search engine crawlers to reach the other versions, and they override the visitor's own choice. A visible selector and a remembered user preference are the safer approach.

  • What data should I check before building the structure?

    Write down the price, currency, delivery and compliance differences for each market in one table. Then review the search queries and demand signals from that market. Together these show concretely whether a separate folder is justified.

Related Articles

No comments yet

Leave a Comment