Canonical Tags Explained: How to Handle Duplicate URLs

The same content on your website can often be reached through several different URLs. A product page might appear with tracking parameters, sorting options or session IDs. A blog post might be accessible with and without a trailing slash, with www or without it, or through a printer-friendly version. To a human, these are the same page. To a search engine, they may look like separate pages with duplicate content.

Canonical tags help solve this problem. They tell search engines which URL is the preferred, or canonical, version of a page. This guide explains how canonical tags work, when to use them and the mistakes that can quietly harm your SEO.

At a Glance: A canonical tag (rel=”canonical”) points to the preferred version of a page. Use self-referencing canonicals on every page, point duplicates to the main version, keep canonicals consistent with redirects, sitemaps and internal links, and remember that Google treats canonicals as a strong hint, not a command.

What Is a Canonical Tag?

A canonical tag is a line of HTML placed in the head section of a page. It looks like this in plain terms: a link element with rel set to “canonical” and an href pointing to the preferred URL. When search engines see it, they understand that the current page is a version of the specified URL and should generally consolidate signals there.

Why Duplicate URLs Are a Problem

— —

Duplicate content is usually not a penalty, but it can make your SEO less efficient and less predictable.

Common Causes of Duplicate URLs

  • HTTP and HTTPS versions both accessible
  • www and non-www versions both accessible
  • Trailing slash and non-trailing slash versions
  • URL parameters for tracking, sorting or filtering
  • Printer-friendly or AMP versions
  • Content syndicated on other websites
  • The same product in several categories with different URLs
  • Paginated or session-based URLs

When to Use Canonical Tags

Self-referencing canonicals

Every indexable page should include a canonical tag pointing to itself. This protects against parameter variations and makes your preferred URL clear. Most SEO plugins add this automatically.

Pointing duplicates to the main version

If you need multiple versions of a page for users, such as filtered product views, add a canonical tag on each variation pointing to the main page.

Syndicated content

If your article is republished on another site, ask the publisher to add a canonical tag pointing to your original. This helps search engines identify you as the source.

Canonical Tags vs Redirects vs Noindex

— — —
301 redirect Users never need the old URL Sends users and bots to the new URL

For site-wide issues such as HTTP versus HTTPS or www versus non-www, redirects are better than canonicals. Use canonicals for variations users still need to access.

Canonicals Are Hints, Not Commands

Google treats canonical tags as a strong signal but may choose a different canonical if other signals conflict. For example, if your sitemap lists one URL, internal links point to another and the canonical tag names a third, Google may ignore your tag. You can see the canonical Google selected in the URL Inspection tool in Search Console.

Best Practices

  • Use absolute URLs including the protocol and domain
  • Include only one canonical tag per page
  • Point canonicals to live pages that return a 200 status, not redirects or 404s
  • Keep internal links, sitemaps and canonicals consistent
  • Do not canonicalise paginated pages to page one unless the content is truly duplicated
  • Do not combine a canonical to another URL with a noindex tag on the same page

Canonical Tags in WordPress

WordPress adds canonical tags to singular posts and pages by default, and SEO plugins extend this to archives and allow custom canonicals per page. In the advanced settings of your SEO plugin, you can set a custom canonical URL when you need to point a page elsewhere. Avoid installing multiple SEO plugins, as each may output its own canonical tag.

Cross-Domain Canonicals

Canonical tags can point to a URL on a different domain. This is useful when the same content legitimately exists on multiple sites you control or when you syndicate content. Use this carefully, because it tells search engines to give credit to the other domain.

How to Check Canonical Tags

  • View the page source and search for “canonical”
  • Use the URL Inspection tool to compare the user-declared canonical with the Google-selected canonical
  • Run a site crawl to find missing, multiple or broken canonicals
  • Check the Pages report in Search Console for “Duplicate, Google chose different canonical than user”

Common Canonical Mistakes

  • Canonicalising every page to the homepage
  • Pointing canonicals to redirected or broken URLs
  • Leaving canonicals from a staging domain after migration
  • Using relative URLs incorrectly
  • Multiple conflicting canonical tags from different plugins
  • Canonicalising different content, such as two distinct articles, to one URL

Real-World Example

An online store noticed that many product pages appeared in search with long URLs containing sorting and colour parameters. Analytics showed traffic split across dozens of variations. The store ensured every product variation included a canonical tag pointing to the main product URL, updated internal links to use clean URLs and removed parameter URLs from the sitemap. Over time, search results showed the clean URLs and ranking signals were consolidated.

Frequently Asked Questions

Does every page need a canonical tag?

It is best practice for every indexable page to have a self-referencing canonical tag.

Is duplicate content a Google penalty?

Generally no. Duplicate content is not penalised unless it is deceptive or manipulative, but it can dilute signals.

Can I use canonical tags instead of redirects?

Use redirects when the old URL should no longer be accessed. Use canonicals when the duplicate version must remain available.

Why did Google choose a different canonical?

Your signals may be inconsistent, or Google believes another URL is a better representative. Align internal links, sitemaps and redirects.

Can canonical tags point to another domain?

Yes, cross-domain canonicals are supported and useful for syndicated content.

Do canonical tags pass link equity?

They help consolidate signals, including links, to the canonical URL when Google accepts them.

Conclusion

Canonical tags are a simple way to tell search engines which version of a page matters. Use self-referencing canonicals everywhere, point true duplicates to the preferred version, handle site-wide duplication with redirects and keep all your signals consistent. With clean canonicalization, your ranking signals stay focused where they belong.

Helpful Links

Scroll to Top