Blog · 7 min read

Duplicate content and canonical tags: how to fix it

Published

Duplicate content and canonical tags: how to fix it

When the same content is reachable at more than one address, search engines have to guess which version to show. They may pick the wrong one, split your ranking signals across several copies or skip pages altogether. The fix is usually small: tell Google which address is the main one.

This applies to every platform, whether your site runs on WordPress, Shopify, Wix, Joomla, Magento or custom code. The causes and the cures are the same everywhere.

What duplicate content is, and what it is not

Duplicate content means identical or very similar content at different URLs, on your own site or across sites. Google does not usually "penalise" ordinary duplicates, but it does choose one version to show and ignore the rest. That wastes crawling time and can leave the wrong page ranking, with weaker links and statistics spread over several copies.

Common causes

The tools for fixing it

1. Canonical tag

A canonical tag in a page's <head> names the preferred address:

<link rel="canonical" href="https://www.example.com/product/red-shoes">

Put it on the main page too, pointing to itself. This is called a self-referencing canonical, and it protects against stray parameters. Use full addresses and one canonical per page. Google treats it as a strong hint, not a command.

2. 301 redirect

If the duplicate does not need to exist, redirect it permanently to the main version, for example from http:// to https:// or from non-www to www. Check your rules with the redirect checker, and avoid loops, which cause ERR_TOO_MANY_REDIRECTS.

3. Noindex

For pages that should exist but stay out of search, such as internal search results, add <meta name="robots" content="noindex">. Do not combine it with a block in robots.txt, because Google then cannot see the tag.

4. Consistent internal links and sitemap

Always link to the canonical address, and list only canonical addresses in your XML sitemap. Mixed signals confuse search engines.

Step 1: find duplicates

Step 2: choose the main version

Pick one address style and stick to it: usually https, one choice for www, and consistent trailing slashes. Set that as your site address in your platform's settings, so it generates correct canonical tags and links.

Step 3: apply the fix

  1. Redirect all protocol and host variants to the main version.
  2. Add a self-referencing canonical to every indexable page.
  3. Point variants and filtered or tracked URLs to the main page with a canonical tag.
  4. Noindex thin pages such as internal search results.
  5. Rewrite copied descriptions so each page says something of its own.
  6. Keep staging sites behind a password.

Step 4: watch out for tampering

Hackers sometimes inject their own canonical tags or create thousands of spam pages on your site. If Search Console shows indexed pages you never made, read how to find hidden spam links and how to check if your website is hacked.

Common questions

Will duplicate content get my site penalised?

Not normally. The usual cost is split signals and the wrong page ranking. Deliberate copying at scale is treated differently.

Canonical or redirect?

Use a redirect when the duplicate does not need to be visited. Use a canonical when both addresses must remain reachable, such as filtered product lists.

Can I canonicalise to another website?

Yes. This is common when you republish an article from another site and want credit to go to the original.

Does Google always obey my canonical?

No, it is a hint. Consistent redirects, internal links and sitemap entries make it much more likely to be followed.

Free tools for this problem

More guides