Sitewalk / Guides / Page content / Duplicate content SEO

Duplicate content SEO: find it and fix the cause

Duplicate content means the same or very similar main text can be reached at more than one address. For SEO, the usual fix is to keep one address, then redirect the others to it or point a canonical link at it.

Google's own help page says some duplicate content on a site is normal and does not break its spam policies. So you do not need to panic. You need to know which copies matter and what is creating them.

What counts as duplicate content

Three kinds show up on real sites, and each needs a slightly different answer.

Repeated labels are not the same as copied text. Two product pages can have distinct text and still carry one description from a template. That is worth fixing, but you would not merge the pages.

Why duplicate content matters for SEO

Google describes how it groups pages that seem the same or very similar, then picks one as the canonical, meaning the version that represents the group. It usually shows that one in results.

Four practical problems follow from that:

Google also says it can choose a canonical on its own, and that your preference is a hint. The aim is to make every signal point the same way.

Where the copies come from

CauseExample addressesUsual fix
HTTP and HTTPS both loadhttp://example.com/ and https://example.com/Permanent redirect to HTTPS
Both host names loadexample.com and www.example.comPermanent redirect to one
Tracking parameters/shoes?utm_source=newsCanonical to the clean address
Sort and filter options/shoes?sort=priceCanonical, and link to the clean address
Trailing slash variants/shoes and /shoes/Redirect to one form
A test copy left openstaging.example.comRequire a password
One product in two folders/sale/mug and /kitchen/mugCanonical or one address
Template location pages/plumber-leeds and /plumber-yorkAdd real local detail or merge
Print versions/guide?print=1Canonical to the main page

Fix the cause where you can. One server rule that removes a host variant beats editing hundreds of pages.

How to find duplicate content

Start with a short manual pass:

  1. Open your home page with http, with https, with www and without it. All of them should land on one address.
  2. Add ?test=1 to an important page. View the source and check that the canonical still names the clean address.
  3. Open a sorted or filtered listing and check its canonical the same way.
  4. Search your own site list for repeated titles. A spreadsheet sort is enough for a small site.

To compare a handful of addresses at once, save this as dupcheck.py:

import hashlib, sys, urllib.request
from collections import defaultdict
from html.parser import HTMLParser

class Page(HTMLParser):
    skip_tags = {"script", "style", "nav", "header", "footer"}
    def __init__(self):
        super().__init__()
        self.skip, self.inside, self.title, self.text = 0, "", "", []
        self.description = self.canonical = ""
    def handle_starttag(self, tag, attrs):
        a = dict(attrs)
        if tag in self.skip_tags:
            self.skip += 1
        if tag == "title":
            self.inside = "title"
        if tag == "meta" and (a.get("name") or "").lower() == "description":
            self.description = a.get("content") or ""
        if tag == "link" and (a.get("rel") or "").lower() == "canonical":
            self.canonical = a.get("href") or ""
    def handle_endtag(self, tag):
        if tag in self.skip_tags and self.skip:
            self.skip -= 1
        if tag == "title":
            self.inside = ""
    def handle_data(self, data):
        if self.inside == "title":
            self.title += data
        elif not self.skip:
            self.text.append(data)

groups = {"same text": defaultdict(list), "same title": defaultdict(list), "same description": defaultdict(list)}
for url in sys.argv[1:]:
    req = urllib.request.Request(url, headers={"User-Agent": "duplicate-check"})
    with urllib.request.urlopen(req, timeout=15) as res:
        final = res.geturl()
        html = res.read().decode("utf-8", "replace")
    p = Page()
    p.feed(html)
    words = " ".join(p.text).lower().split()
    print(url, "| lands on", final, "|", len(words), "words | canonical", p.canonical or "none")
    if words:
        groups["same text"][hashlib.sha256(" ".join(words).encode()).hexdigest()].append(url)
    if p.title.strip():
        groups["same title"][p.title.strip().lower()].append(url)
    if p.description.strip():
        groups["same description"][p.description.strip().lower()].append(url)

for label, found in groups.items():
    for urls in found.values():
        if len(urls) > 1:
            print(label.upper() + ":", " ".join(urls))

Give it the addresses you suspect:

python3 dupcheck.py https://example.com/ http://example.com/ "https://example.com/?test=1"

For each address it prints where the request lands, a word count and the canonical. Then it groups addresses with the same text, title or description. It ignores text inside navigation, header and footer tags.

We ran it on three local test pages. It grouped the two copied pages and left the different one out of the text group, while showing that all three shared a title.

We also ran it on four forms of our own home page on 30 Nov 2026. All four were grouped as the same text. The http and www forms landed on the main address through a redirect, which is correct. The version with a tracking parameter stayed at its own address and named the main page as canonical, which is also correct.

So read the output with care. A shared group is a problem only when the addresses neither redirect to one place nor name one canonical.

The script only compares exact text after letter case and spacing are evened out. It will not spot near copies, run JavaScript or crawl your site for you. It stops with an error if a page does not load.

Choose the right fix

SituationWhat to do
The extra address has no reason to existPermanent redirect to the page you keep
Visitors need both, and the content matchesCanonical on the copy, naming the main page
Two pages answer the same needMerge them, then redirect the weaker one
Pages serve different needs but read alikeRewrite each with its own facts and examples
Only titles or descriptions repeatWrite a distinct one for each page
A private test copy is publicProtect it with a password

Google lists redirects and rel="canonical" as strong signals, and a sitemap as a weak one. It says these methods can work together.

How to set a canonical

Place one line in the head of the copy, using the full address of the page you keep:

<link rel="canonical" href="https://example.com/shoes/">

Google recommends that the main page also names itself. Use one canonical per page, make your sitemap agree with it and link to that same address inside your site.

For a file that is not HTML, such as a PDF, Google supports the same idea as an HTTP response header named Link.

Two shortcuts cause trouble. Google says not to use robots.txt to choose a canonical. It also does not recommend noindex for choosing between pages on one site, because that removes the page from Search completely.

Fix repeated titles and descriptions

Repeated descriptions often come from one template field that was never filled. Work in this order:

  1. Fix pages that earn visits or sales first.
  2. Say what is different about each page: the product, the place, the task.
  3. For large sets, build the text from real fields and check that none come out empty.
  4. Leave a description blank rather than copy a sentence that does not fit. Google can write a snippet from the page.

Our guide on duplicate titles goes further on the title side.

Common mistakes

Check it worked

  1. Request each old address and confirm one redirect to the right page.
  2. View the source of each remaining copy and read its canonical.
  3. Run the script again on the same addresses.
  4. Check that your sitemap lists only the addresses you keep.
  5. In Google Search Console, inspect an important address and read the Google-selected canonical field. Allow time for Google to crawl the page again.
  6. Run your audit again and compare the findings.

Related checks are covered in our guides on canonical tags, www and HTTPS versions, thin content and redirect chains.

What Sitewalk found on real sites

Counted on 30 Nov 2026 across audited sites:

The two text checks were added on 2 Nov 2026, so fewer sites were eligible. This is a small early user group, a first look and not a survey. The groups overlap, so do not add them together.

Questions people ask

Can Google penalize you for duplicate content?

Google says some duplicate content on a site is normal and not a violation of its spam policies. Taking content from other sites to manipulate rankings is a different matter, which those policies describe as scraping.

Is duplicate content bad for SEO?

It can be. The wrong address may appear in results, and signals and crawl time get spread across copies. A small number of well handled variants is normal.

Should I use a redirect or a canonical?

Redirect when the extra address is not needed. Use a canonical when people still need to open both versions.

How do I find duplicate content on my site?

Check host and parameter variants by hand, compare suspect pages with the script above, and run a site audit to catch repeats across many pages.

Do duplicate meta descriptions matter?

They are worth fixing on important pages. A distinct description gives Google a better option for the snippet and tells a searcher why to choose that page.

Check your whole site in one sentence

Audit example.com for technical SEO problems

Get started

Checked on 30 Nov 2026. Sources: Google on canonicalization and Google on specifying a canonical URL, Google on snippets, Google spam policies and Search Console URL inspection, read on 30 Nov 2026. Sitewalk counts are from audits counted on 30 Nov 2026.

More guides

All guides