In short
A duplicate is the same content, or nearly identical content, reachable at several URLs. The task is to inventory them, choose for each group the URL that should remain, then consolidate the others with a redirect, a canonical tag or a rewrite. Once this is done, each piece of content has a single reference URL, and that is the one search engines index, links point to and AI assistants cite.
Why it matters
Google groups pages whose main content is identical or very similar and keeps only one, the canonical, which it considers the most complete and useful. The others are generally not served in the results. To choose, it combines several signals: HTTPS or HTTP, redirects, presence in the sitemap, the rel="canonical" tag. These are hints: if you do not provide them, or if they contradict each other, Google chooses for you, sometimes a URL you did not want to see.
Duplication is not a penalty. Google says so explicitly: some duplicate content is normal and does not violate its policies. The cost lies elsewhere:
- Scattered signals: external and internal links are spread across several URLs instead of being concentrated on one.
- Wasted crawling: the crawler downloads the same content several times, which matters on large catalogs.
- Wrong URL shown: a printable version, a parameterized URL or an old address may appear in the results.
- Muddled measurement: clicks on the same content are split across several rows in Search Console.
- Cannibalization: two similar pages targeting the same query compete with each other; neither wins out.
On the GEO side (Generative Engine Optimization, visibility in generative engines), assistants that rely on a search index inherit these choices: a single, stable source is more likely to be picked up consistently. No consolidation guarantees a citation, however.
What it improves
- Indexing The chosen URL is the one that enters the index, not a variant.
- Rankings An indirect effect, through concentrated links and an end to competition between similar pages.
- Crawling Fewer useless URLs to visit. A noticeable effect beyond a few thousand pages.
- Click-through rate A clean, stable URL is shown in the results and in AI answers.
- Reporting One page, one row in the reports.
How to check
Search Console. Open the Page indexing report and look at three reasons:
| Reason | What it means | Action |
|---|---|---|
| Duplicate without user-selected canonical | Google found a duplicate with no declared canonical and chose another URL | Declare the canonical or consolidate |
| Duplicate, Google chose different canonical than user | Your canonical was not followed | See compare declared and Google-selected canonicals (opens in a new tab) |
| Alternate page with proper canonical tag | The variant points to an indexed canonical | Nothing, unless the variant is a strategic page |
For a specific URL, the URL Inspection tool shows "User-declared canonical" and "Google-selected canonical".
Crawl. With Screaming Frog (free up to 500 URLs), enable near-duplicate detection (Configuration > Content > Duplicates, default threshold 90%), run the crawl, then the crawl analysis. The Content tab lists exact and near duplicates; the Page Titles tab lists duplicate titles, often the first clue. Siteliner offers a free check on a sample of pages.
Technical variants from the command line. Only one version should respond 200; the others should redirect:
for u in "https://example.com/produit/" "https://example.com/produit" "https://example.com/Produit/" "https://example.com/produit/index.html" "https://example.com/produit/?utm_source=test"; do
printf "%s -> " "$u"; curl -s -o /dev/null -w "%{http_code} %{redirect_url}\n" "$u"
done
Expected result: one 200 line, the others 301 to the chosen URL, except the variant with a tracking parameter, which may respond 200 if its canonical points to the clean URL.
Exact-match search. Copy a distinctive sentence from a page into Google and Bing, in quotation marks: several URLs from your site in the results point to a duplicate; a third-party URL points to a copy.
How to implement
Before you start
Sort the duplicates you found, because the remedy depends on the cause:
| Family | Examples | Usual remedy |
|---|---|---|
| Host and protocol | http://, www., old domain |
301 redirect at the server or CDN level. See standardize HTTP/HTTPS and www/non-www (opens in a new tab) |
| URL form | trailing slash, capitals, index.html |
301 redirect. See standardize letter case and trailing slashes (opens in a new tab) |
| Parameters | sort order, tracking, session, filters | Canonical, possibly blocking crawling. See control parameterized URLs (opens in a new tab) |
| CMS structure | product under several categories, attachments, tag archives | CMS setting, canonical, noindex for archives with no value |
| Editorial | two articles on the same topic, city pages with identical text | Merge and 301, or rewrite to differentiate. See detect keyword cannibalization (opens in a new tab) |
| Cross-domain | syndicated content, copying by a third party | Agreement with the partner to block indexing, removal request |
Then, group by group, apply these criteria:
- Does the variant have a reason to exist for the user? No: 301 redirect to the chosen URL, the strongest signal. Yes (sort order, printable version, product in several categories): canonical to the chosen URL.
- Are the two pages similar but aimed at different needs? Differentiate the content: Google may keep pages grouped for up to two weeks after a fix, and only clear differences separate them.
- Neither has any value? Delete with a 404 or 410 if nothing replaces it.
As the chosen URL, pick the one with the most links and traffic and the cleanest form. Then align everything on it: internal links, sitemap, hreflang, structured data. See align canonicals, sitemap and internal links (opens in a new tab).
Consolidation table template:
| Group | Chosen URL | Duplicate URL | Family | Treatment | Internal links fixed | Status |
|---|---|---|---|---|---|---|
| G01 | /guides/choisir-the-vert/ |
/blog/quel-the-vert-choisir/ |
Editorial | Merge + 301 | Yes | Done |
| G02 | /products/sencha-bio |
/collections/thes-verts/products/sencha-bio |
CMS structure | Canonical (native) | Yes | Verified |
| G03 | /entretien-chaudiere-nantes/ |
/entretien-chaudiere-nantes/?print=1 |
Parameters | Canonical | N/A | To do |
Warning: do not consolidate with the robots.txt file, or with the Search Console Removals tool. A blocked URL can stay indexed without Google seeing its canonical, and the Removals tool hides all versions of the URL. Do not use
noindexto designate a canonical within the same site either.
Apache
Versions Apache 2.4.
Redirect merged pages and stray forms in the virtual host or .htaccess (with mod_rewrite enabled):
RewriteEngine On
# Merged pages: old URL -> chosen URL
RewriteRule ^blog/quel-the-vert-choisir/?$ /guides/choisir-the-vert/ [R=301,L]
# Explicit index.html or index.php -> folder
RewriteCond %{THE_REQUEST} \s/+(.*/)?index\.(html?|php)[\s?] [NC]
RewriteRule ^ /%1 [R=301,L]
For a non-HTML file (duplicate PDF), declare the canonical in the HTTP header with mod_headers:
<Files "tarifs-2026.pdf">
Header set Link "<https://example.com/tarifs/>; rel=\"canonical\""
</Files>
Test, then reload: sudo apachectl configtest && sudo systemctl reload apache2.
Nginx
Versions Nginx 1.18 and later.
In the site's server block, for example /etc/nginx/sites-available/example.com:
location = /blog/quel-the-vert-choisir/ {
return 301 /guides/choisir-the-vert/;
}
# Explicit index.html -> folder
if ($request_uri ~* "^(.*/)index\.html?$") {
return 301 $1;
}
location = /tarifs-2026.pdf {
add_header Link '<https://example.com/tarifs/>; rel="canonical"';
}
For hundreds of redirects, use a map loaded from a file, in the http context:
map $uri $nouvelle_url {
include /etc/nginx/redirections.map;
}
With one line per URL in /etc/nginx/redirections.map: /ancienne-page/ /nouvelle-page/;. Then, in the server block: if ($nouvelle_url) { return 301 $nouvelle_url; }. Reload with sudo nginx -t && sudo systemctl reload nginx.
Cloudflare
Versions Cloudflare dashboard, all plans, November 2026.
For a list of URLs to consolidate without touching the server, use Bulk Redirects: at the account level, on the Bulk Redirects page (also reachable from the zone through Rules > Settings > Bulk Redirects), create a redirect list (CSV import possible: source URL, target URL, 301 code), then a rule that enables this list. For a pattern (every URL in an old folder), create a redirect rule from the rules overview, Create rule > Redirect Rule, with a wildcard pattern and the 301 code. The hostname must be proxied by Cloudflare. Then purge the cache for the URLs concerned.
AWS
Versions AWS console (CloudFront, Application Load Balancer, S3), November 2026.
On CloudFront, a CloudFront Function associated with the viewer request event can return 301s from a URL table; for thousands of entries, CloudFront KeyValueStore avoids republishing the code. On an Application Load Balancer, add a listener rule per pattern with the "Redirect to URL" action, code HTTP_301. On S3 static website hosting, an x-amz-website-redirect-location metadata value on the old URL's object redirects to the new one.
Plesk
Versions Plesk Obsidian 18.0.
Paste the rules from the Apache section into the site's .htaccess (File Manager, httpdocs folder), or the Nginx rules into Websites & Domains > your domain > Apache & nginx Settings > Additional nginx directives. Plesk tests and reloads the configuration when you save.
cPanel
Versions cPanel & WHM 110 and later, Jupiter theme.
The Domains > Redirects tool creates 301s one at a time: choose "Permanent (301)", the domain, the source path and the target URL. It writes the rules to public_html/.htaccess. For a list, paste the rules from the Apache section directly into this file.
Shared hosting
On Apache or LiteSpeed hosting (OVHcloud, o2switch, Infomaniak, Ionos, Hostinger), the .htaccess file at the root is enough: reuse the block from the Apache section. Make sure your rules come before the CMS's rules, otherwise the CMS responds 200 or 404 before the redirect.
WordPress
Versions WordPress 6.4 and later, Yoast SEO 20 and later, Rank Math 1.0, Redirection 5.
- Canonical: WordPress outputs a self-referencing canonical on content. Yoast SEO and Rank Math let you change it page by page, in the "Advanced" tab of the plugin's panel, "Canonical URL" field.
- Attachment pages: since WordPress 6.4, they are disabled on new installs. On an older site, Yoast SEO (media pages setting) and Rank Math (redirect attachments to the parent) remove them.
- Archives: tag, date and author archives repeat the same excerpts. Set the ones that add nothing to
noindex, in the SEO plugin's settings, and keep the categories you have worked on. - Merges: the Redirection plugin handles 301s from
Tools > Redirection, with CSV import and a 404 log.
Shopify
Versions Shopify admin and Online Store 2.0 themes, all plans, November 2026.
A product is reachable at /products/sencha-bio and at /collections/thes-verts/products/sencha-bio. Shopify outputs a canonical to /products/… through the {{ canonical_url }} object, which the theme must keep in theme.liquid:
<link rel="canonical" href="{{ canonical_url }}">
Improve internal linking: in the product grid snippets, remove the | within: collection filter from the links so they point directly to /products/…. Variants (?variant=) keep the product's canonical. For a merge, create the redirect in the admin, Content > Menus, "View URL redirects" link.
PrestaShop
Versions PrestaShop 8 and 9.
The same product appears under several categories and with its combinations. In Shop Parameters > Traffic & SEO, in the URL settings block, set "Redirect to the canonical URL" to 301 and check that the theme outputs a canonical to the product's URL in its default category. Catalog SEO modules complement this setting for combinations.
Magento
Versions Magento Open Source and Adobe Commerce 2.4.
In Stores > Configuration > Catalog > Catalog > Search Engine Optimization, set "Use Canonical Link Meta Tag For Categories" and "Use Canonical Link Meta Tag For Products" to Yes, and "Use Categories Path for Product URLs" to No so that links point to the short URL. Flush the cache (System > Cache Management).
Laravel
Versions Laravel 10 to 13.
Declare the canonical in the shared template, without parameters:
<link rel="canonical" href="{{ url()->current() }}">
url()->current() returns the URL without the query string. For merges, in routes/web.php:
Route::permanentRedirect('/blog/quel-the-vert-choisir', '/guides/choisir-the-vert');
Next.js
Versions Next.js 15 and 16 (App Router).
In the App Router, declare metadataBase in app/layout.tsx, then each page's canonical:
// app/guides/[slug]/page.tsx
import type { Metadata } from 'next';
type Props = { params: Promise<{ slug: string }> };
export async function generateMetadata({ params }: Props): Promise<Metadata> {
const { slug } = await params;
return {
alternates: { canonical: `/guides/${slug}` },
};
}
Merges go in next.config.js, with permanent: true (308 code, treated as a permanent redirect):
module.exports = {
async redirects() {
return [
{ source: '/blog/quel-the-vert-choisir', destination: '/guides/choisir-the-vert', permanent: true },
];
},
};
Common mistakes
- Canonical to a page that redirects, returns 404 or carries
noindex: the signal contradicts itself, and Google ignores it. - Canonical to the homepage or to page 1 for a whole series: pages 2 and beyond of a pagination are not duplicates of the first.
- Canonical and internal links diverging: the menu points to
/produit, the canonical to/produit/. The signals cancel each other out. - Merging without redirecting: the old page stays online with the same text, or disappears as a 404 along with its links.
- City pages with identical text: changing the city name is not enough to differentiate them, and producing such pages at scale amounts to doorway pages (opens in a new tab).
- Relying on the canonical for syndicated content: Google advises against it in this case; ask the partner to block indexing of their copy.
Frequently asked questions
Does duplicate content lead to a Google penalty?
No, duplicate content does not lead to a penalty: Google states that some duplication is normal and does not violate its policies. It simply groups identical pages and shows only one. The real cost is scattered links, wasted crawling and the risk of an unwanted URL being shown. Only massive duplication designed to manipulate results, such as content copied from other sites, falls under penalized practices.
Should a duplicate get a 301 redirect or a canonical tag?
Use a 301 redirect when the duplicate page is of no use to visitors: an old URL, a form variant, a merged article. It is the strongest signal and it passes on links. Keep the canonical tag when the variant must remain accessible, for example a sorted list, a printable version or a product present in several categories. The canonical remains a hint that Google may not follow.
How do you find near-identical pages on a site?
To find near-identical pages, run a crawl with Screaming Frog's near-duplicate detection, which compares the main content of pages against an adjustable similarity threshold. Cross-check with the Search Console Page indexing report, "Duplicate" reasons, and with the list of duplicate titles. For a small site, Siteliner gives a free first overview of passages repeated from one page to another.
Is a product page listed in several categories a duplicate?
Yes, if the product page is reachable at several URLs depending on the category the visitor comes from, these are technical duplicates. The solution is a single product URL, independent of the category, that all links point to, or failing that a canonical to the main category's URL. Shopify does this natively with the /products/ URL, Magento through its product URL setting without the category path.
Resources
- Google Search Central: Canonicalizationdevelopers.google.com
- Google Search Central: How to specify a canonical URLdevelopers.google.com
- Google Search Central: Fix canonicalization issuesdevelopers.google.com
- Search Console Help: Page indexing reportsupport.google.com
- Screaming Frog: How to audit canonicalsscreamingfrog.co.uk
- Shopify: canonical_url objectshopify.dev
Updated on
Topic checklist (PDF)