Skip to content
FunnelGuard

Fix guide by FunnelsGuard

ccTLD vs subfolder setup duplicating content: how to fix it

SEO-277Medium impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

There are two common ways to run a site for several countries. A ccTLD (country-code top-level domain) is a separate domain per country, such as example.de or example.fr. A subfolder keeps everything on one domain, such as example.com/de/ or example.com/fr/.

Both are valid. The problem starts when you use both for the same market, often after a migration, a rebrand or a test that was never removed. The German pages then exist at example.de/produkt and at example.com/de/produkt with nearly identical content.

Search engines treat these as two copies. They pick one to show and may drop the other. They may not pick the one you wanted.

How the duplicate forms
  1. example.de/produktCountry domain, indexed
  2. example.com/de/produktSubfolder copy, same content
  3. Split signalsLinks and ranking power divided
  4. Wrong URL ranksUsers land on the unintended version

The same German page is live on two hosts, so signals are split and the wrong one can win.

Why it costs you leads or sales

Duplicates split the links and engagement that would otherwise build one strong page. Google usually picks a single version to show, but it can choose the one you do not want. That may be a URL with the wrong currency, a different checkout, or tracking set up for another property.

Visitors who arrive on the unintended domain may also hit a form that sends mail to the wrong inbox, or a cart that is not maintained. Your own pages can compete with each other for the same searches.

Where German organic clicks goExample numbers
Where German organic clicks go (example)Before: example.de: 55 % of clicks; Before: example.com/de: 45 % of clicks; After: chosen URL: 100 % of clicks038775545100Before: example.deBefore: example.com/deAfter: chosen URL% of clicks

Example: with duplicates, clicks split across two hosts. After consolidation, one URL gets them all. Numbers are illustrative.

How to check if your site has it

Check for duplicates across hosts
  1. Open both versions of one page

    Load a page on the country domain and the same page in the subfolder. If both return 200 with the same content and no redirect, you have a duplicate.

  2. Search with the site: operator

    In Google, search site:example.de and site:example.com/de. If the same pages appear in both, both are indexed.

  3. Inspect the URL in Search Console

    Use URL Inspection on both URLs. Compare 'User-declared canonical' and 'Google-selected canonical'. A mismatch means Google disagrees with you.

  4. Check the canonical and hreflang tags

    View source on each page. Look for rel=canonical and rel=alternate hreflang. Both hosts pointing at themselves as canonical is a common cause.

  5. Crawl both hosts

    Run a crawler such as Screaming Frog on each host and compare page titles and content hashes to find matching pages.

How to fix it

First decide which structure serves each market. A ccTLD gives a strong country signal but means managing several domains. Subfolders are simpler to maintain and share the authority of one domain. What matters is one choice per market, not both.

ccTLD versus subfolder at a glance
FactorccTLD (example.de)Subfolder (example.com/de/)
Country signalStrongSet through hreflang and Search Console
UpkeepOne site per countryOne site overall
AuthorityBuilt separately per domainShared across the domain
CostDomain, hosting and SSL for eachOne set
Consolidate to one structure per market
  1. Pick the version to keep

    For each country, choose the host that stays live, for example example.de.

  2. 301 redirect the other version

    Redirect every URL on the unwanted host to its exact equivalent on the kept host, page to page. Do not send everything to the homepage.

  3. Set self-referencing canonicals

    Each kept page should have a rel=canonical pointing to its own preferred URL on the kept host.

  4. Update hreflang to the kept URLs only

    Hreflang must list the kept URLs for every language version, with return links. Remove entries that point to redirected hosts.

  5. Update sitemaps and internal links

    Submit sitemaps that contain only the kept URLs and change internal links to match.

  6. Keep marketing and tracking aligned

    Make sure ad landing pages, GA4 and tags use the kept host so campaigns do not land on a redirect.

Apache: 301 redirect the subfolder to the country domainhtaccess
RewriteEngine On
RewriteRule ^de/(.*)$ https://example.de/$1 [R=301,L]
Nginx: 301 redirect the subfolder to the country domainnginx
location ~ ^/de/(.*)$ {
    return 301 https://example.de/$1;
}
Canonical and hreflang on the kept German pagehtml
<link rel="canonical" href="https://example.de/produkt" />
<link rel="alternate" hreflang="de" href="https://example.de/produkt" />
<link rel="alternate" hreflang="en" href="https://example.com/product" />
<link rel="alternate" hreflang="x-default" href="https://example.com/product" />
Where to make the change
  1. Find the source of the duplicate

    Check whether a multisite network, a multilingual plugin (WPML, Polylang, TranslatePress) or a mapped domain is serving the same language twice.

  2. Use one URL mode

    In your multilingual plugin settings, choose either a different domain per language or a directory per language, not both.

  3. Redirect the unused host

    Add 301 redirects with your host's redirect tool or a redirect plugin, then check canonicals in your SEO plugin.

How to confirm it's fixed

Confirmation checks
  • The unwanted host returns a single 301 to the matching kept URL (test several deep pages, not just the homepage).
  • Each kept page has a self-referencing canonical on the kept host.
  • Hreflang lists only kept URLs and every pair links back.
  • Search Console URL Inspection shows the same user-declared and Google-selected canonical.
  • The sitemap contains no URLs from the retired host.
  • Over the following weeks, site: searches stop showing the retired host.

How to prevent it happening again

Prevention habits
  • Write down one chosen structure per market and share it with developers and agencies.
  • Before launching a new country site, check that the same content is not already live under another host.
  • Block staging and test hosts from indexing and keep them behind a login.
  • Re-crawl both hosts after migrations and plugin updates.
  • Review the Search Console Pages report for 'Duplicate, Google chose different canonical than user'.

How FunnelGuard handles this

FunnelGuard does not check for this yet. Duplicate content across a ccTLD and a subfolder is a possible future check, but today it is not covered.

What FunnelGuard does do is run your real customer journeys on a schedule, such as lead forms and checkouts, and check the tracking hits sent to ad and analytics platforms. That can show whether a journey on one of your country sites still works, but it will not tell you that two hosts carry the same content.

To watch for this yourself, use Google Search Console for each host and review the Pages report regularly. Run a crawler on both hosts after any change and compare the results. You can also get a free read-only website audit from FunnelGuard as a general starting point.

Questions people ask

Is it bad to have both a ccTLD and a subfolder for the same country?

Yes, if both serve the same content. Search engines see duplicates, split signals between them and may rank the version you did not intend. Pick one structure per market and redirect the other.

Is a ccTLD or a subfolder better for international SEO?

Neither is always better. A ccTLD gives a strong country signal but costs more to run and builds authority separately. A subfolder is simpler and shares one domain's authority. Choose based on resources and how separate each market is.

Will duplicate content on country domains get me a Google penalty?

Usually not a penalty. Google normally picks one version and filters the rest. The real cost is lost ranking power and the risk that the wrong URL is shown to searchers.

Do I need hreflang if I use country domains?

Yes, hreflang still helps. It tells search engines which version suits which language or region, even across different domains. Each version must link to the others and back.

How do I redirect example.com/de to example.de?

Add a server-level 301 redirect that maps each /de/ path to the same path on example.de. On Apache use a RewriteRule, on Nginx a location block with return 301. Redirect page to page, not all to the homepage.

Can I fix this with canonical tags instead of redirects?

Canonicals can help, but they are only a hint. If both hosts stay live, Google may ignore them. A 301 redirect is the more reliable fix when one host should not be used.

Why does the wrong country site show up in Google?

Often because the same content exists on two hosts or hreflang is missing or wrong. Google then chooses a version on its own. Consolidating and fixing hreflang usually corrects it.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.