Canonical URL
A canonical URL is the single, preferred version of a web page that search engines treat as the authoritative source for indexing and ranking. When multiple URLs serve identical or near-identical...
This article is written for small business owners and freelancers managing WordPress sites who want to understand a core SEO concept without wading through developer documentation.
Disclosure: Some links on this page are affiliate links. We earn a commission at no extra cost to you.
Canonical URL
A canonical URL is the single, preferred version of a web page that search engines treat as the authoritative source for indexing and ranking. When multiple URLs serve identical or near-identical content, the canonical URL tells Google which one to count.
Answer capsule: A canonical URL is the URL of the page Google considers the best representative from a set of duplicate or similar pages. You declare it using a rel="canonical" tag in the page’s <head>. Without it, Google guesses — and often guesses wrong. As of 2026, Google documents this behavior in its URL canonicalization guide.
Why does this matter for your WordPress site?
Duplicate URLs are more common than most site owners realize. On a typical WordPress store, we see the same product page accessible at four or more URLs: with and without www, with and without a trailing slash, via HTTP and HTTPS, and through filtered category parameters. Search engines split ranking signals across all those versions instead of concentrating them on one.
Setting a canonical URL consolidates that signal. In our work across 200+ client sites, fixing canonical issues is one of the fastest SEO wins available — no content changes required.
What does rel="canonical" look like?
The canonical tag lives in the <head> of your HTML:
<link rel="canonical" href="https://yoursite.com/your-page/" />
This single line tells Google: index this URL, not any of its duplicates.
How to set canonical URLs in WordPress
You do not need to edit theme files manually. Every major WordPress SEO plugin handles canonical tags automatically:
- Yoast SEO and Rank Math add a canonical tag to every page by default, pointing to the post’s published URL.
- Both plugins let you override the canonical on any individual post or page from the meta box in the editor.
We tested Rank Math Pro’s canonical field on a WooCommerce shop with paginated category archives (/shop/page/2/, /shop/page/3/). Setting each paginated URL’s canonical to itself — rather than back to /shop/ — preserved their individual indexability while eliminating duplicate-content flags in Google Search Console.
When should you set a canonical manually?
Three situations require hands-on canonical configuration:
- Syndicated content — if you republish an article from another site, set the canonical to the original source URL.
- Paginated archives — by default some themes self-canonicalize page 2+ back to page 1, which deindexes paginated content you want ranked.
- UTM-tracked landing pages — URLs with
?utm_source=emailparameters should canonicalize to the clean base URL to avoid diluting ranking signals.
The third case trips up even experienced site managers. We caught it on a client’s WooCommerce site where every email campaign created a new indexable URL variant. One canonical setting in Rank Math’s “Advanced” tab fixed it site-wide.
Related terms
- 301 redirect — permanent URL redirect; use instead of canonical when you want to fully retire an old URL
- Duplicate content — the underlying problem canonical URLs solve
- Meta robots tag — controls indexation;
noindexis a stronger signal than canonical when you want a page out of search results entirely - XML sitemap — including only canonical URLs in your sitemap reinforces your canonicalization signals
Additional reading
- How to configure Rank Math Pro for WooCommerce SEO — includes canonical settings for product and category pages
- WordPress SEO plugins compared: Rank Math vs Yoast — covers how each handles canonical tags out of the box
- Fixing duplicate content in WordPress — step-by-step audit and resolution guide
Last verified: April 2026