Plugins Plugin hub Backup SEO Caching Security Forms WooCommerce Images Best backup plugins
Hosting Hosting directory Shared Managed Cloud India
Themes & builders Compare Rank Math vs Yoast
Tools All tools Hosting finder Plugin stack builder Cost calculator Salt generator Theme detector Who is hosting this? Speed test Headline analyzer robots.txt generator Redirect generator Uptime calculator Blog name generator
Best lists Best backup plugins Deals
Guides All guides Speed up WordPress Choose hosting Back up WordPress
How we test

SEO & AI search · Guide

How to Fix Duplicate Content in WordPress

Short answer

To fix duplicate content in WordPress, first find the duplicate URLs in Google Search Console, then decide what each one should be: add a canonical tag pointing to the preferred version, use a 301 redirect when the duplicate should not exist at all, or merge thin copies into one stronger page. Most duplicates are harmless, so fix the ones where Google picked the wrong version first.

Key takeaways

  • Duplicate content means the same content is reachable at more than one URL, and Google groups the copies and picks one canonical version.
  • Ordinary duplicate content is not a penalty, but split signals can cost traffic when Google picks the wrong version.
  • Redirects and rel=canonical tags are strong signals to Google, while a sitemap listing is only a weak signal.
  • WordPress core outputs a canonical link for single posts and pages, and Rank Math and Yoast let you override it per post.
  • Use a 301 redirect when the duplicate should not exist, and a canonical tag when both addresses must stay live.
  • Check the Google-selected canonical in the URL Inspection tool to confirm your preference took effect.

What is duplicate content in WordPress?

Duplicate content means the same or nearly the same content is reachable at more than one URL on your site.

A post can appear at its own address, at a tag archive, at a category archive, and at a paginated copy, all at once. Tracking links add more copies, such as the same page with a question mark parameter at the end.

Google groups these similar pages together and picks one as the canonical version, the one it shows in search results. The other copies are treated as duplicates and are not shown separately.

WordPress creates many of these copies by itself. Archives, feeds, attachment pages and URL parameters all produce extra addresses for content that already has a home.

Does duplicate content hurt your rankings?

Ordinary duplicate content is not a penalty, but it can still cost you traffic when Google picks the wrong version.

Google's canonicalization guide explains that the canonical page is the one Google uses as the main source to judge content and quality. If Google picks a tag archive instead of your post, the archive is the page that gets the ranking signals.

The real cost is split signals. Links, shares and visits spread across several copies of one page instead of adding up on the version you want to rank. Google also spends crawl time on copies instead of new content.

Fix duplicates where Google chose the wrong canonical. Leave harmless copies alone when Google already picked the right page, since the canonical doc notes your site will likely do just fine without a stated preference.

Where does duplicate content come from on a WordPress site?

Most duplicates come from a short list of WordPress features and common site setups.

  • HTTP and HTTPS versions. Both addresses serve the same pages when no redirect forces one version.
  • WWW and non-WWW versions. The two hosts are two different addresses for the same content.
  • Tracking parameters. Links with added tags, such as a question mark followed by a tracking code, create a new address for the same page. Google uses a tracking link as its own example in the canonical guide.
  • Category and tag archives. A tag page and a category page can list almost the same posts.
  • Attachment pages. WordPress creates a small page for each uploaded image, and these pages often look alike.
  • Paginated archives. Page 2 of one archive can look much like page 2 of another.
  • Upper and lower case URLs. Google treats the two spellings as different URLs with their own content.

Our categories vs tags guide explains how the two taxonomies differ and why tags cause most of the archive overlap.

How do you find duplicate content on your site?

Open Google Search Console, go to Indexing, then Pages, and look for three statuses in the Why pages are not indexed table.

Duplicate without user-selected canonical means Google found copies and picked one itself, with no preference stated by you. Alternate page with proper canonical tag means your canonical tag is working and the copy is correctly set aside.

Duplicate, Google chose different canonical than user means you stated a preference and Google disagreed. That is the status worth fixing first, because it shows a conflict between your signals.

Click any example URL, then open the URL Inspection tool to compare the user-declared canonical with the Google-selected canonical. When they match, the page is fine.

How do you fix it with a canonical URL?

Add a canonical tag that points from each duplicate to the version you want Google to show.

A canonical URL is the preferred address for a page, set with a link element in the head of the HTML. Google calls redirects and canonical tags strong signals, while a sitemap listing is only a weak signal, according to Google's canonicalization guide.

In Rank Math, open the post or page, click the Rank Math SEO icon, then the Advanced tab, and enter the full canonical URL in the Canonical URL field.

Rank Math adds a self-referencing canonical to most pages by itself, so you only change it when another URL should be the main one, as described in Rank Math's canonical guide.

In Yoast SEO, open the post, page, category or tag, go to the Advanced section of the Yoast SEO sidebar, and enter the full canonical URL there. Yoast renders the correct canonical for almost any page type by default, per Yoast's canonical help.

WordPress core also outputs a canonical link for single posts and pages by itself. The rel_canonical function has done this since WordPress 2.9, and it uses wp_get_canonical_url to pick the address, as shown in the WordPress developer reference.

When should you use a 301 redirect instead?

Use a 301 redirect when the duplicate page should not exist at all.

A redirect removes the copy from the web, while a canonical tag leaves both pages live and asks Google to prefer one. Google calls a redirect a strong signal that the target should become canonical, per Google's canonicalization guide.

Redirect when you merged two posts into one, when an old slug has a clear replacement, or when a staging copy is live by mistake. Keep the canonical tag for cases where both addresses must stay reachable, such as a product page with sorting options.

Do not redirect a page to the homepage just to hide it. Point it at the closest matching live page, or let it return a 404 if nothing matches. Our post 404 fix guide covers that choice in detail.

How do you handle duplicates from tracking and filters?

Keep tracking parameters off the addresses Google sees, and point every internal link at the clean canonical URL.

Google's own example is a product page reached through a link with a tracking tag added, such as a question mark code at the end of the URL. The clean page address and the tracked address show the same content, so the clean one should carry the canonical tag.

Link to the canonical URL inside your own site. Google's guide says linking consistently to the URL you consider canonical helps it understand your preference, as stated in Google's canonicalization guide.

List only the canonical addresses in your sitemap. A sitemap is a weak signal on its own, but it stacks with the canonical tag and the redirect, so all three should agree.

If your shop or directory uses filters and sorting, check that each filter combination does not create a new indexable URL. Our sitemap fix guide explains how to check what your sitemap actually lists.

What about attachment pages and tag archives?

Attachment pages and thin tag archives are the two WordPress-specific duplicate sources worth cleaning up.

WordPress creates a page for every image you upload, and these pages often show little more than the image itself. Both Rank Math and Yoast offer a setting to redirect attachment pages to the image file or to the parent post, which removes the duplicate at the source.

Tag archives cause the same problem at a larger scale. A tag used on one or two posts produces a page with almost nothing on it, and dozens of such tags multiply the thin pages.

Merge tags that mean the same thing, delete tags with one post, and keep only the tags that group real content.

Our categories vs tags guide shows how to plan the two taxonomies so they stop overlapping.

How do you set a canonical the right way?

Follow a short checklist so every signal on the page agrees with the one you want Google to use.

RuleWhy it matters
Use the full absolute URLRelative paths can break if a staging copy is crawled
Put the tag in the head sectionGoogle only accepts a canonical link in the head
Add a self-referencing canonicalThe main page should point to itself
Never point to a URL fragmentGoogle generally does not support fragments as canonicals
Match the sitemap and internal linksMixed signals make Google ignore your preference
Do not use robots.txt for thisGoogle may still index a blocked URL without its content

Google's guide lists these as best practices, including the warning against robots.txt and against the URL removal tool, which hides all versions of a URL, per Google's canonicalization guide.

Do not use noindex to pick a canonical inside your own site. Google advises against it, because noindex blocks the page from search entirely instead of pointing at the main copy.

What mistakes should you avoid?

The biggest mistake is pointing canonical tags at the wrong page, such as sending every weak page to the homepage.

  • Do not set different canonicals for the same page in different places, such as one in the sitemap and another in the head tag.
  • Do not chain canonicals, where page A points to B and B points to C.
  • Do not canonicalize a page to a URL that returns a 404 or redirects elsewhere.
  • Do not forget the HTTPS version, since Google prefers HTTPS over HTTP as canonical unless the certificate is invalid.
  • Do not expect instant results, because Google rechecks pages on its own schedule.

Check your work with the URL Inspection tool after each change, and confirm the Google-selected canonical matches the one you declared.

Our Rank Math setup guide shows where the canonical settings live in that plugin.

The Yoast setup guide does the same for Yoast.

Frequently asked questions

Is 'Duplicate without user-selected canonical' an error I must fix?

No. Search Console lists it as a status, not an error, and Google picks a canonical itself when you do not state one. It only needs work when Google picked the wrong version, for example a tag archive instead of your post, or the HTTP version instead of the HTTPS version. If Google picked the address you want, leave it alone.

What is the difference between a canonical tag and a 301 redirect?

A canonical tag is a hint that tells Google which version of a page to show, while both pages stay live. A 301 redirect removes the duplicate and sends visitors and crawlers to the new address. Use a canonical when both addresses must stay reachable, and a redirect when the duplicate should not exist at all.

Can I point a tag page's canonical at a category page?

Yes, when the duplicate really is the same page. A category and a tag that list the same posts can share a canonical, but it is usually better to merge or delete the weaker one. Pointing a tag archive at a category page is fine when the category is the stronger, more complete page and the tag adds nothing new.

Why did Google ignore my canonical tag?

Google says a canonical preference is only a hint, not a rule, and it may pick a different version if the signals disagree. Check that your internal links, sitemap and canonical tag all point at the same URL, that the target returns a 200 status, and that the target page is not blocked by robots.txt or marked noindex. Then wait for Google to recrawl.

How do I fix each type of duplicate content?

It depends on the cause. A tracking parameter is harmless once the canonical is set, because Google groups the copies. An HTTP and HTTPS pair is fixed with a redirect to HTTPS. An attachment page is fixed by redirecting it to the image file. A thin tag archive is fixed by merging or deleting the tag. Match the fix to the cause rather than applying one tool to every case.

Sources

  1. How to Specify a Canonical with rel="canonical" and Other Methods Google Search Central
  2. Spam Policies for Google Web Search Google Search Central
  3. rel_canonical() WordPress Developer Resources
  4. Setting Canonical URLs in Rank Math Rank Math
  5. How to change the canonical URL in Yoast SEO for WordPress Yoast
  6. Canonical URLs: What They Are & How to Use Them for SEO Rank Math

Is your product missing, or something out of date?

Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.

About the editors

WPLegible editors

Researched from the primary sources listed above and checked against our editorial rules. About the site · How we test