WordPress Canonical URLs: Fixing Duplicate Content Issues
Duplicate content confuses search engines and dilutes ranking signals. WordPress canonical URLs tell Google which version of a page is authoritative. Here's how to get them right.

WordPress generates multiple URLs that serve equivalent or near-equivalent content. A post might be accessible at its permalink, at an author archive, at a date archive, at a category archive, and with various query string parameters. Without canonical URLs, search engines treat each of these as a separate page, splitting the ranking signals across multiple versions of the same content.
Canonical URLs tell Google which URL is the “real” one — the canonical version that should receive link equity and appear in search results. Getting canonicals right is one of the foundational technical SEO tasks on any WordPress site.
What the canonical tag does
The rel="canonical" link element in a page’s <head> tells search engines:
<link rel="canonical" href="https://yourdomain.com/the-real-url/" />
This is a hint, not a directive. Google respects canonicals in the vast majority of cases, but may override them if the specified canonical is clearly wrong (canonicalizing to a noindexed or redirected page) or if the content relationship isn’t as strong as the tag suggests.
When Google sees a canonical tag, it consolidates link equity from the non-canonical versions to the canonical URL, uses the canonical URL in search results, and crawls the non-canonical versions less frequently.
How WordPress generates canonicals
WordPress generates canonical tags automatically for most content. On a single post or page, the canonical is set to the post’s permalink. On archive pages, WordPress sets canonicals to the archive URL.
SEO plugins (Yoast SEO, Rank Math) take over canonical generation and provide more control — you can override canonicals per-post and configure network-wide rules for pagination and archive pages.
The default canonical behavior is correct for most simple sites. Problems arise in specific scenarios that WordPress’s default handling doesn’t address optimally.
Duplicate content patterns in WordPress
URL parameters. WordPress URLs can accumulate query string parameters from tracking (?utm_source=...), sorting (?orderby=price), filtering (WooCommerce attribute filters), and pagination (?paged=2). Each parameter variation is a technically distinct URL. By default, WordPress canonicalizes parameterized URLs back to the clean permalink — verify this is working if you use filtering or sorting parameters.
HTTP vs. HTTPS. If both versions of your site are accessible (rare but possible with misconfigured redirects), you have exact duplicates across protocols. The canonical should specify HTTPS, and a 301 redirect from HTTP to HTTPS should prevent the HTTP version from being indexed at all. See the 301 redirects guide.
www vs. non-www. Both https://www.yourdomain.com/page/ and https://yourdomain.com/page/ serve the same content if there’s no redirect. Choose one as canonical, redirect the other, and ensure your WordPress address settings and canonical tags both use the same version consistently.
Pagination. WordPress generates paginated archive pages (/page/2/, /page/3/). These should be treated as distinct pages (they contain different posts) with their own canonical pointing to themselves, not to page 1. Setting the canonical of page 2 to page 1 (a common but incorrect configuration) tells Google to treat page 2 as a duplicate of page 1 and stop indexing paginated content.
In your SEO plugin: configure paginated pages to self-canonical (each paginated page is canonical to its own URL). Don’t use rel="prev" / rel="next" — Google deprecated its use of these tags years ago.
Category and tag archives. Posts appear in both their permalink and in category/tag archives. WordPress handles this by self-canonicalizing each archive page and the individual post permalink — they’re not duplicates of each other. Problems arise when the same post appears in multiple categories and the archives for both categories include the full post content rather than excerpts.
Author archives. Author archive pages list posts by a specific author. If you have a single-author site, the author archive is a near-duplicate of the main blog archive. For single-author sites with thin author archives, either noindex the author archive or redirect it to the homepage or a relevant category archive.
Date archives. Monthly and daily date archives (e.g., /2026/10/) are rarely valuable for SEO and add unnecessary crawl surface. Most SEO plugins allow you to noindex date archives. If your date archives have meaningful traffic (some news sites do), self-canonicalize and keep them.
Setting canonicals correctly in WordPress
WordPress core: Handles canonicals for standard content automatically. The Settings → General “WordPress Address (URL)” and “Site Address (URL)” determine the base URL used in canonical tags. Make sure these match your actual URL (www vs. non-www, HTTP vs. HTTPS).
With Yoast SEO or Rank Math:
- Per-post canonical override is available in the post editor’s SEO settings panel
- Network-wide canonical settings for archives, pagination, and taxonomies are in SEO → Search Appearance (Yoast) or SEO → Titles & Meta (Rank Math)
- Noindex options for thin archives (date, author) are in the same section
Manual canonical tag: For edge cases where plugin output is incorrect, you can output canonical tags directly in your theme’s <head>:
// Remove SEO plugin's canonical and add custom one
remove_action( 'wp_head', [ $wpseo_front_end, 'canonical' ], 10 );
add_action( 'wp_head', function() {
if ( is_singular() ) {
$canonical = get_permalink( get_queried_object_id() );
echo '<link rel="canonical" href="' . esc_url( $canonical ) . '" />' . "\n";
}
});
Auditing canonical issues
Screaming Frog and Sitebulb both report canonical tags on crawled pages, including whether the canonical is self-referential, whether it differs from the URL being crawled, and whether it points to a noindexed or redirected URL.
Google Search Console’s Coverage report surfaces pages that “aren’t selected as canonical by Google” — cases where Google chose a different canonical than the one you specified. Review these to understand whether Google’s choice is correct or whether there’s a misconfiguration.
Combine canonical auditing with your XML sitemap review — the sitemap should contain only canonical URLs, and every URL in the sitemap should have a self-referential canonical tag. Cross-referencing the two is a reliable way to find canonical inconsistencies.