All articles
Canonical URLs: What They Are and How to Use rel=canonical Correctly

On-Page SEO

Canonical URLs: What They Are and How to Use rel=canonical Correctly

Canonical tags tell Google which version of a page is the main one. Learn when you need them, the common mistakes and how canonicals interact with redirects.

RankThis8 min read
canonical urlsduplicate contentrel canonicaltechnical seo
Share

A canonical URL is the version of a page that a site designates as its primary, indexable original. When the same content is reachable at multiple URLs, a rel=canonical tag tells Google which URL is the true original, so search engines do not treat the copies as separate, competing pages. Getting canonicalisation right prevents crawl waste, rank dilution, and the confusion that duplicate content creates inside Google's systems.

Key Takeaways

  • Canonicalisation is how you declare the one URL that should represent a piece of content when duplicates exist; Google treats it as a strong hint rather than a hard command.
  • The most common reasons to use canonicals are genuinely duplicated content, template variants, parameter URLs, and publishing systems that generate multiple paths to the same page.
  • rel=canonical belongs in the head of the page HTML and is most reliable when combined with consistent internal links and predictable URL structure.
  • Canonicals and redirects are different tools: redirects permanently move users and bots to one URL, canonicals consolidate signals without moving anyone. Merge the wrong way and you leak equity or confuse signals (see 301 redirects and when to use them).
  • A self-referencing canonical is good practice on every page, because it anchors your declared preference and guards against duplication introduced later.
  • For blogs and small sites, technical SEO foundations plus a consistent page build usually prevent most duplication before you need canonicals at all.

Why Canonicalisation Exists

Every URL on your site is a candidate for Google to crawl and index. When one article is reachable at two URLs, Google sees two pages with near-identical content. It must choose which to index, and without instruction it can pick the wrong one, or split weak interest between them and rank an accidental sub-URL.

Canonicalisation exists so that you, the publisher with full knowledge of intent, can pre-empt that choice on Google's behalf. The tag is a single HTML element in the head stating which URL you want treated as the original.

When You Actually Need a Canonical

Use a canonical whenever the same primary content exists at more than one URL, including:

  • Article tags or categories that regenerate the same article under other paths.
  • Paginated views of a single article.
  • Parameter URLs (sorting, filtering, tracking) that return the same content.
  • HTTP and HTTPS or www and non-www variants before you fully redirect one to the other.
  • Syndicated content you have published elsewhere.

If you have no duplicate URLs at all, a self-referencing canonical on every page is still worthwhile: it states your declared original and protects the page against duplication introduced later by platform or plugin changes.

Canonical vs Redirect: Choosing the Right Tool

A common confusion is the difference between a canonical and a 301 redirect. A redirect moves the user and the bot from URL A to URL B, and after a permanent redirect the old URL effectively stops existing. A canonical keeps both URLs live but tells search engines which one to index and rank.

The rule of thumb: when one URL is genuinely redundant and you want all traffic to land on the other, use a redirect. When both URLs may legitimately exist for users (for example print or AMP variants, or tracked links) but only one should be indexed, use a canonical.

Errors mostly run one direction: using canonicals where a redirect is needed, which leaves the redundant URL crawlable and indexable, or accidentally creating redirect loops between the canonical and the redirect target. Our 301 redirect guide includes the checklist for deciding.

How to Implement rel=canonical

Implementation is a single head element per page:

  • The canonical tag points to the absolute URL including the protocol and domain.
  • The canonical target must be a URL Google can actually crawl; a canonical pointing at a blocked or redirected page defeats itself.
  • It belongs in the HTML head; meta robots alone do not canonicalise.
  • Keep the canonical consistent with any sitemap entry and internal links for that page, because Google uses all three signals together.

For blogs on common platforms, canonicalisation is usually handled by the theme or a plugin, but you should verify it after theme changes, because broken canonical output is a classic post-update regression.

Common Canonical Mistakes

  • Points to a page that is also noindexed, sending two contradictory signals.
  • Chains, where A points to B and B points to C, instead of everything pointing at the final original.
  • Relative canonical URLs rather than absolute ones, which some crawlers misresolve.
  • Duplicate canonical tags on one page, which invite inconsistent handling.
  • Canonicals that point to a URL which then redirects, creating a loop.

Each mistake produces a mild but real signal conflict that can delay indexing or split ranking influence. Fix them to the point of boring predictability.

Canonicals, Structured Data, and Sitemaps

Indexing signals work as a set: the canonical, your sitemap entry, internal links, and structured data should all name the same URL. If structured data sits on the duplicate rather than the canonical, Google associates the rich result signals with the wrong URL, which can cause schema markup to be ignored.

Your XML sitemap should list canonical URLs only. Listing the duplicates invites Google to index what you said you did not want indexed, producing the exact fragmentation canonicals are meant to prevent. See the XML sitemap guide for the full sitemap checklist.

Frequently Asked Questions

Can Google ignore my canonical tags?

Yes. The rel=canonical tag is a strong hint rather than a command, and Google can choose a different page, usually when the canonical is broken, points to a non-indexable URL, or dramatically contradicts what the page actually shows. The fix is making your canonicals consistent with your sitemaps and internal links.

What is a self-referencing canonical?

A canonical tag pointing at the page's own URL. It declares that this URL is the original and preferred version of this content, which guards against duplication introduced later, such as plugins generating alternate paths. Google has said self-referencing canonicals are a safe, good practice.

Should I use a canonical or a 301 redirect for duplicate content?

Use a redirect when you want users and bots to land on one URL and the other no longer needs to exist. Use a canonical when both URLs are legitimately served to users but only one should be indexed. Err toward redirects for content you consolidated and canonicals for platform-level variants.

Do canonical URLs affect how my site handles structured data?

Yes. Google reads structured data relative to the canonical URL. If schema markup appears only on a non-canonical duplicate, the rich result signals are associated with the wrong URL and may be ignored. Keep schema and canonical aligned on the same URL.

Keep reading

All articles →