# Identify duplicates within a language

- Check 24.04 · Multilingual indexing and sitemaps · Critical
- Source: https://checklist-seo-geo.com/en/multilingual-indexing-sitemaps/identify-duplicates-within-language
- Find the duplicates specific to each language (default language on two URLs, old slugs, ?lang=, untranslated content) and fix them with a 301 or a canonical.
- Updated on 2026-11-25
- Licence: CC BY 4.0. Credit “Checklist SEO & GEO” with a link to https://checklist-seo-geo.com/en/multilingual-indexing-sitemaps/identify-duplicates-within-language.
- Plugin checklist-seo-geo: 1.3.1 · https://github.com/maximegaul/checklist-seo-geo

## In short

A multilingual site produces duplicates that a single-language site never has: the default language served both at `/` and at `/fr/`, the old untranslated slug still live next to the translated slug, the `?lang=de` parameter coexisting with `/de/`, or “German” pages that display the French text because there is no translation. The task is to look for these duplicates language by language, then keep a single URL for each piece of content, with a 301 redirect or a canonical.

## Why it matters

Google groups URLs whose main content is identical or very similar, then selects one of them as canonical. Between two languages, this grouping does not happen when the content is actually translated: Google only considers language versions to be duplicates if the main content is in the same language. Within the same language, on the other hand, two URLs with the same content are duplicates in the strict sense.

On a multilingual site, these duplicates have three specific effects:

- **Google may select the wrong URL**: the old untranslated slug rather than the new one, or `/` rather than `/fr/`, while your `hreflang` annotations point to the other one.
- **The `hreflang` annotations get muddled**: when choosing canonicals, Google favors URLs that are part of an `hreflang` cluster. A URL outside the cluster that wins anyway breaks the mapping between languages.
- **Untranslated content duplicates another language**: a `/de/` page with a French body is a duplicate of the `/fr/` page. It will be grouped with it and bring nothing to the German market.

Duplicates also scatter links and make reports unreadable: a page's performance is split across several addresses, or concentrated on a URL you did not expect.

## What it improves

- **Canonical URL selection**: Google more often selects the URL declared in `hreflang` and the sitemap.
- **Link consolidation**: links to old addresses benefit the selected URL.
- **Crawling**: fewer useless URLs to crawl per language.
- **Clearer reports**: one URL per piece of content and per language.
- **Citations in AI answers**: an indirect effect. A stable URL per language keeps an outdated address from being cited.

## How to check

**Default language on two URLs.** If the main language is served without a prefix, test the prefixed version, and vice versa:

```bash
for url in https://example.com/ https://example.com/fr/ https://example.com/tarifs/ https://example.com/fr/tarifs/; do
  printf '%s -> ' "$url"
  curl -s -o /dev/null -w "%{http_code} %{redirect_url}\n" "$url"
done
```

Expected result: one of the two forms returns `200`, the other a `301` to it (or `404` if it never existed).

**Language parameter.** `curl -s -o /dev/null -w "%{http_code}\n" "https://example.com/tarifs/?lang=de"` must return a `301` to `/de/preise/`, not a `200`.

**Old slugs.** After [translating slugs](https://checklist-seo-geo.com/en/international-architecture/translate-slugs-if-relevant), the old address `/de/tarifs/` must redirect to `/de/preise/`.

**Across the whole site, with Screaming Frog.**

1. Enable near-duplicate detection: `Configuration > Content > Duplicates`, tick “Enable Near Duplicates” (default threshold of 90%).
2. Create one segment per language: `Configuration > Segments`, one “Address contains /de/” rule per language.
3. Crawl, then run `Crawl Analysis > Start`.
4. In the `Content` tab, with the “Exact Duplicates” and “Near Duplicates” filters, filter by segment. Do the same in `Page Titles` and `H1`, “Duplicate” filter.

A pair of duplicates in the same language is a problem to deal with. A pair that mixes two languages (identical `/de/` and `/fr/` URLs) reveals an untranslated page.

**In Search Console**, per language property: the reasons “Duplicate without user-selected canonical” and “Duplicate, Google chose different canonical than user” in the [Page indexing report](https://search.google.com/search-console/index) list the duplicates Google has detected.

**Without a paid tool**, Siteliner analyzes a sample of pages for free and flags internal duplicate content; the free version of Screaming Frog covers 500 URLs.

## How to implement

### Before you start

Classify each duplicate you find and apply the matching treatment:

| Duplicate | Example | Treatment |
|---|---|---|
| Default language with and without a prefix | `/tarifs/` and `/fr/tarifs/` | 301 to the form chosen in [define the default version](https://checklist-seo-geo.com/en/international-architecture/define-default-version) |
| Legacy language parameter | `/tarifs/?lang=de` | 301 to `/de/preise/` |
| Old slug after translation | `/de/tarifs/` and `/de/preise/` | 301 from the old one to the new one |
| Same language on two hosts | `example.de/` and `example.com/de/` | 301 to the selected host |
| Untranslated page served in another language | `/de/blog/article/` with French text | Do not publish, or link to the original: see [check untranslated URLs and fallbacks](https://checklist-seo-geo.com/en/multilingual-indexing-sitemaps/check-untranslated-urls-fallbacks) |
| Two separate pages too similar within a language | Two German articles translated from closely related sources | Merge or rewrite: see [identify and consolidate duplicates](https://checklist-seo-geo.com/en/indexing-canonicalization/identify-consolidate-duplicates) |
| Identical regional variants | `/fr-fr/` and `/fr-be/` | See [handle near-identical regional variants](https://checklist-seo-geo.com/en/multilingual-indexing-sitemaps/handle-near-identical-regional-variants) |
| Parameters, letter case, trailing slash | `/de/preise?utm_source=x` | Self-referencing canonical specific to the language |

A 301 redirect is preferable when the duplicate URL has no reason to exist: it removes the duplicate instead of flagging it. A canonical is appropriate when both URLs must stay accessible.

### Apache

Versions: Apache 2.4.

In the `.htaccess` at the root, or in the virtual host by adding a leading slash to the patterns:

```apache
RewriteEngine On

# Default language without a prefix: /fr/... redirects to /...
RewriteRule ^fr/(.*)$ /$1 [R=301,L]

# Legacy language parameter, identical slugs across languages
RewriteCond %{QUERY_STRING} (^|&)lang=(de|en)(&|$) [NC]
RewriteRule ^(.*)$ /%2/$1? [R=301,L]

# Old untranslated slugs
RewriteRule ^de/tarifs/?$ /de/preise/ [R=301,L]
RewriteRule ^en/tarifs/?$ /en/pricing/ [R=301,L]
```

Reverse the first rule if your default language has a prefix (`RewriteRule ^$ /fr/ [R=301,L]`, taking care not to create a [forced redirect based on browser language](https://checklist-seo-geo.com/en/international-architecture/avoid-forced-redirects-based-browser-language)). Reload with `sudo apachectl configtest && sudo systemctl reload apache2`.

### Nginx

Versions: Nginx 1.24 and later.

In the `http` context, a map for old slugs:

```nginx
map $uri $old_slug_target {
    default "";
    /de/tarifs/ /de/preise/;
    /en/tarifs/ /en/pricing/;
}
```

In the `server` block:

```nginx
location ^~ /fr/ {
    rewrite ^/fr/(.*)$ /$1 permanent;
}

if ($old_slug_target) {
    return 301 $old_slug_target;
}

if ($arg_lang ~* ^(de|en)$) {
    return 301 /$arg_lang$uri;
}
```

```bash
sudo nginx -t && sudo systemctl reload nginx
```

### Cloudflare

Versions: Cloudflare dashboard, all plans, November 2026.

For a large number of old slugs, use “Bulk Redirects”, which are set at the account level, not the zone level: on the dashboard's “Bulk Redirects” page, create a list (`Create Bulk Redirect List`) and import a CSV file with the source URL, the target URL and the 301 status code, then create the rule that enables this list (`Create Bulk Redirect Rule`). A list without a rule has no effect.

For a default language wrongly served with a prefix, a single zone rule is enough: from the [rules overview](https://dash.cloudflare.com/?to=/:account/:zone/rules/overview), `Create rule > Redirect Rule`, “Wildcard pattern” option.

- Request URL: `https://example.com/fr/*`
- Target URL: `https://example.com/${1}`
- Status code: 301, query string preserved.

`${1}` reuses the part of the path captured by the asterisk. Test with `curl -sI https://example.com/fr/tarifs/`: the response must be a `301` with `location: https://example.com/tarifs/`.

### WordPress

Versions: WordPress 6.4 to 7.1; WPML 4, Polylang 3, Redirection 5.

- **WPML**: in `WPML > Languages`, “Language URL format” section, the option that puts the default language in a directory determines whether French is served at `/` or at `/fr/`. After any change, check that the other form redirects.
- **Polylang**: in `Languages > Settings`, “URL modifications” module, the option that hides the default language's code in the URL plays the same role. Test both forms after any change.
- **Changed slugs**: WordPress redirects a post's old slug to the new one (`_wp_old_slug` metadata), but not always for pages, nor for slugs rewritten by a translation plugin. Add the missing redirects with the Redirection plugin or your SEO plugin's redirect feature.
- **`?lang=` parameter**: if it was used in the past, add the Apache or Nginx rule above.

Purge the page cache and the CDN.

### Shopify

Versions: Shopify admin, all plans, November 2026.

When you change the handle of a product, collection or page in the admin, tick the box that creates a redirect: Shopify then redirects the old URL. For old URLs that were not redirected, add them in `Content > Menus > View URL redirects > Create URL redirect` (the former `Online Store > Navigation` menu has moved), one line per old address, language prefix included. Product URLs under a collection (`/collections/…/products/…`) already declare the product page as canonical.

### Laravel

Versions: Laravel 10 to 13.

Redirect the prefixed default language and old slugs in `routes/web.php`, before the localized routes:

```php
use Illuminate\Support\Facades\Route;

Route::permanentRedirect('/de/tarifs', '/de/preise');
Route::permanentRedirect('/en/tarifs', '/en/pricing');

Route::get('/fr/{path?}', function (?string $path = null) {
    return redirect('/'.ltrim((string) $path, '/'), 301);
})->where('path', '.*');
```

For slugs stored in the database, record each old slug in a redirects table and respond with a `301` from the controller when the page is found through an outdated slug.

### Next.js

Versions: Next.js 15 and 16 (App Router and Pages Router).

In `next.config.js`:

```js
module.exports = {
  async redirects() {
    return [
      { source: '/fr/:path*', destination: '/:path*', permanent: true },
      { source: '/de/tarifs', destination: '/de/preise', permanent: true },
      { source: '/en/tarifs', destination: '/en/pricing', permanent: true },
    ];
  },
};
```

`permanent: true` returns a 308 status code, which Google treats as a permanent redirect just like a 301. Adapt the first rule to your prefix strategy.

### After the fix

1. Run the crawl again: duplicates within the same language must have disappeared from the “Duplicate” filters.
2. Remove the redirected URLs from the sitemap and the `hreflang` annotations.
3. Update internal links so that they point directly to the final URL.

## Common mistakes

- **Looking for duplicates across the whole site without segmenting by language**: a small language's duplicates go unnoticed.
- **Translating slugs without redirecting the old ones**: two URLs per page for months.
- **Leaving the default language accessible with and without a prefix**: Google picks one or the other, sometimes differently from page to page.
- **Canonical to the preferred URL, but `hreflang` and sitemap to the other one**: contradictory signals.
- **Publishing pages with an untranslated body** to “fill” a language: they duplicate the original.
- **Redirecting to the language's home page** rather than to the exact equivalent.

## Frequently asked questions

### Are a page's translations duplicates?

No. Google only considers language versions of a page to be duplicates if their main content is in the same language. A translated page is a separate page, linked to the others with hreflang. The duplicates to look for are those within the same language: the same page served at two URLs, an old slug still active, or a page in one language that actually displays the text of another.

### Should the default language be served at / or at /fr/?

Both choices work; what matters is keeping only one. If the default language is served at /, the /fr/… URLs must 301-redirect to their equivalent without a prefix, and vice versa. A default language accessible in two forms creates a duplicate for every page, and Google may select a different form from the one declared in hreflang and the sitemap.

### 301 redirect or canonical for a duplicate within a language?

Prefer a 301 redirect when the duplicate URL has no reason to exist, such as an old slug or a legacy language parameter: it removes the duplicate and passes on the links. Keep the canonical for URLs that must stay accessible, such as variants with tracking or sorting parameters. In both cases, update the sitemap and the hreflang annotations.

### How do you spot near-duplicates within a single language?

Enable Screaming Frog's near-duplicate detection, create one segment per language directory, crawl, then run the crawl analysis. The Content tab, with the Exact Duplicates and Near Duplicates filters, lists the pairs by segment. Complete this with each language's duplicate titles and H1s, and with the “Duplicate” reasons in the indexing report of each per-language Search Console property.

## Resources

- [Google Search Central: How to specify a canonical URL](https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls?hl=en)
- [Google Search Central: What is canonicalization?](https://developers.google.com/search/docs/crawling-indexing/canonicalization?hl=en)
- [Google Search Central: Redirects and Google Search](https://developers.google.com/search/docs/crawling-indexing/301-redirects?hl=en)
- [Screaming Frog: How to check for duplicate content](https://www.screamingfrog.co.uk/how-to-check-for-duplicate-content/)
- [Cloudflare: Bulk Redirects](https://developers.cloudflare.com/rules/url-forwarding/bulk-redirects/)
- [Shopify: URL redirects](https://help.shopify.com/en/manual/online-store/menus-and-links/url-redirect)
- [Next.js: redirects](https://nextjs.org/docs/app/api-reference/config/next-config-js/redirects)

Next steps: [Handle near-identical regional variants](https://checklist-seo-geo.com/en/multilingual-indexing-sitemaps/handle-near-identical-regional-variants) and [Check redirects and old translated URLs](https://checklist-seo-geo.com/en/multilingual-indexing-sitemaps/check-redirects-old-translated-urls).
