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.
- Exact copies: two addresses with identical main text.
- Near copies: pages that differ by a few words, such as a place name swapped into the same paragraphs.
- Repeated labels: different pages that share a title, meta description or main heading.
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 may pick a different address from the one you want people to see.
- Links from other sites can end up split across several addresses.
- Crawlers spend time on copies instead of new or updated pages.
- Your reports spread one page's visits over many rows.
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
| Cause | Example addresses | Usual fix |
|---|---|---|
| HTTP and HTTPS both load | http://example.com/ and https://example.com/ | Permanent redirect to HTTPS |
| Both host names load | example.com and www.example.com | Permanent redirect to one |
| Tracking parameters | /shoes?utm_source=news | Canonical to the clean address |
| Sort and filter options | /shoes?sort=price | Canonical, and link to the clean address |
| Trailing slash variants | /shoes and /shoes/ | Redirect to one form |
| A test copy left open | staging.example.com | Require a password |
| One product in two folders | /sale/mug and /kitchen/mug | Canonical or one address |
| Template location pages | /plumber-leeds and /plumber-york | Add real local detail or merge |
| Print versions | /guide?print=1 | Canonical 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:
- Open your home page with
http, withhttps, withwwwand without it. All of them should land on one address. - Add
?test=1to an important page. View the source and check that the canonical still names the clean address. - Open a sorted or filtered listing and check its canonical the same way.
- 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
| Situation | What to do |
|---|---|
| The extra address has no reason to exist | Permanent redirect to the page you keep |
| Visitors need both, and the content matches | Canonical on the copy, naming the main page |
| Two pages answer the same need | Merge them, then redirect the weaker one |
| Pages serve different needs but read alike | Rewrite each with its own facts and examples |
| Only titles or descriptions repeat | Write a distinct one for each page |
| A private test copy is public | Protect 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:
- Fix pages that earn visits or sales first.
- Say what is different about each page: the product, the place, the task.
- For large sets, build the text from real fields and check that none come out empty.
- 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
- Pointing every page in a series, such as page 2 and page 3, at page 1. Later pages hold different items.
- Using a relative address in a canonical when the full one is safer.
- Naming one address in the canonical and a different one in the sitemap.
- Pointing a canonical at a page that redirects or fails.
- Rewriting a few words on near copies and calling them unique.
- Redirecting every old page to the home page, which leaves visitors lost.
Check it worked
- Request each old address and confirm one redirect to the right page.
- View the source of each remaining copy and read its canonical.
- Run the script again on the same addresses.
- Check that your sitemap lists only the addresses you keep.
- In Google Search Console, inspect an important address and read the
Google-selected canonicalfield. Allow time for Google to crawl the page again. - 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:
- 109 of 150 sites (72.7%) had pages flagged for near identical titles, descriptions and headings.
- 56 of 150 sites (37.3%) had pages sharing a meta description.
- 29 of 127 eligible sites (22.8%) had near copies of main text.
- 20 of 127 eligible sites (15.7%) had exact copies of main text.
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
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.