Currently looking for international opportunities in digital marketing & design.Let’s talk

Skip to content
Kavin P

SEO

Canonical Tags Explained: Fix Duplicate Pages Calmly

By Kavin P · · 7 min read

Line charts on a screen
Photo from Unsplash (unsplash.com/license)

Open almost any website and you will find the same content reachable through more than one address. A product might appear with and without tracking parameters, a blog post might load on both a secure and an insecure address, and a category might show up under several sort orders. Canonical tags are the standard way to tell search engines which address you prefer.

What Is a Canonical Tag?

A canonical tag is a small line in the head of a web page that names the preferred URL for that content. It is often called the rel canonical link. Think of it as telling search engines: "Several addresses may show this page, but this is the one to treat as the main version."

It is a hint, not a command. Search engines look at the tag along with other signals such as redirects, internal links and sitemaps, and usually follow it when the signals agree. When signals conflict, they may choose a different version.

Why Duplicate URLs Cause Trouble

Duplicate or near-duplicate pages are rarely penalised in a dramatic way. The problem is quieter:

  • Search engines must guess which version to show, and may choose one you did not intend.
  • Link value from other sites and from your own pages can be split across versions.
  • Reports in your analytics and search tools become messy because the same page appears under several addresses.
  • Crawling effort is spent on copies instead of your important pages.

Canonical tags reduce that confusion by consolidating signals onto a single preferred address.

Common Sources of Duplicate URLs

Knowing where duplicates come from helps you decide where canonicals are needed.

  1. Tracking parameters. Campaign links add extra text to the end of an address. If you use them, read the UTM parameters guide.
  2. Protocol and host variations. Secure versus insecure, with or without the www prefix.
  3. Trailing slash differences. The same page reachable with and without a closing slash.
  4. Sorting and filtering. Online stores often create many addresses for the same product list. See faceted navigation SEO for that deeper topic.
  5. Print or mobile versions. Separate copies of a page for different formats.
  6. Syndicated or republished content. The same article placed on more than one site.
  7. Product variants. Different colours or sizes with nearly identical pages.
  8. Pagination and archives. Date, tag and author archives that repeat post excerpts.

How a Canonical Tag Is Set Up

You do not need to write code to use canonicals, but you should know the rules.

  • Each page should declare one canonical address, in the head section of the page.
  • Use the full, absolute address, including the secure prefix, not a relative path.
  • A page can point to itself. This self-referencing canonical is good practice because it protects against stray parameters.
  • The canonical target should be a live page that returns a normal success response, not an error or a redirect.
  • The canonical target should have very similar content to the page that points to it.

Most content management systems and SEO plugins handle this automatically. On WordPress, for example, many plugins output a self-referencing canonical by default, and you can override it for specific pages. Check the output rather than assuming; our SEO for WordPress websites guide covers common setups.

Canonical Tag or Redirect?

This is the question that confuses most beginners. The difference is simple.

  • A redirect sends visitors and search engines to a different address. The old address stops being shown to people.
  • A canonical tag leaves both addresses accessible to visitors but signals which one search engines should prefer.

Use a redirect when the old address should disappear entirely, for instance after moving a page or fixing a www versus non-www split. Use a canonical when both addresses must remain usable, for instance a filtered product list or a page with a tracking parameter. For the permanent-versus-temporary question, read 301 vs 302 redirects.

A Worked Example (Hypothetical)

Imagine a small online shop selling handmade notebooks. The product page for a leather journal is reachable at its clean address, but also with a colour filter, a sort order and a campaign tag added. That is four addresses showing one product.

A sensible setup:

  1. The clean product address declares itself as canonical.
  2. Each parameter variation declares the clean address as canonical.
  3. Internal links, menus and the sitemap all use the clean address.
  4. Campaign links keep their tags for tracking, because the canonical protects the search signals.

Notice that the canonical is only one of four coordinated signals. If the sitemap listed the parameter version and internal links pointed to it, search engines would receive mixed messages.

Mistakes to Avoid

Pointing Many Pages to One Unrelated Page

Some sites set every page's canonical to the homepage in an attempt to fix duplicates. That tells search engines to ignore all those pages. Canonicals should point to equivalent content only.

Canonical Chains and Loops

Page A pointing to B, and B pointing to C, creates a chain. A pointing to B and B pointing back to A creates a loop. Both leave search engines to guess. Point directly to the final address.

Combining Canonical With Blocking

If you block a page from being crawled, search engines cannot read its canonical tag. Choose one clear approach per page. The XML sitemap and robots.txt guide explains how crawling controls interact with other signals.

Pointing to a Redirected or Broken Address

The target should be a working page. If it redirects or returns an error, the signal is weakened.

Using Canonicals for Genuinely Different Pages

If two pages answer different questions, they should not share a canonical, even if they are on a similar topic. If you suspect two of your own posts compete, review keyword cannibalization and decide whether to merge, differentiate or redirect.

Forgetting Syndicated Content

If you republish an article on another site, ask that site to point its canonical to your original, where possible. If they do not, at least ensure your original is published first and well linked.

How to Check Your Canonicals

You can audit canonicals without expensive tools.

  1. Open a page, view its source and search for the word canonical. Confirm that the address is the one you expect.
  2. Use the URL inspection feature in your search performance tool to see which address the search engine chose as canonical. Google Search Console basics explains how to find it.
  3. Run a crawl of your site with a free or paid crawler and filter for pages with missing, multiple or mismatching canonicals.
  4. Review the pages report for statuses mentioning duplicates or alternate pages with a canonical tag. Some of these are expected and fine, while others point to a problem.

The technical SEO audit checklist puts this inside a wider routine.

When Search Engines Choose Differently

Sometimes the report says the search engine selected a different canonical than the one you declared. Do not panic. Common reasons include:

  • Your internal links or sitemap point to the other version.
  • The two pages are not similar enough for the hint to be accepted.
  • The preferred version is slow, blocked or inconsistent.
  • External links point to the other version.

Align your signals: update internal links, fix the sitemap, make the content clearly equivalent, and wait for the next crawl.

A Simple Policy You Can Adopt

To keep things tidy as your site grows, write a short internal rule set:

  • One preferred version of the domain, enforced by redirects.
  • Self-referencing canonicals on every indexable page.
  • Clean addresses in internal links and sitemaps.
  • Parameters and filters canonicalised to their parent page unless they offer unique value.
  • A periodic canonical check after any redesign, migration or plugin change.

Good site organisation makes all this easier, which is why website structure for SEO is worth planning early.

Takeaway: Be Clear About Your Preferred Address

Canonical tags are not mysterious. They are a polite, clear statement of which address you want treated as the main one. Use self-referencing canonicals as a default, point duplicates to equivalent pages, keep your other signals consistent and check the results periodically.

If you want help reviewing how your site handles duplicate URLs, browse the free resources or get in touch.

Frequently asked questions

Do I need a canonical tag on every page?

It is good practice to give every indexable page a self-referencing canonical. This protects against accidental duplicates created by parameters or other variations, and makes your preferred address explicit.

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

A redirect sends everyone to a different address, while a canonical tag leaves both addresses reachable and only signals which one search engines should prefer. Use redirects when the old address should disappear.

Will search engines always follow my canonical tag?

Not always. It is treated as a strong hint, not a command. If your internal links, sitemap or content send conflicting signals, a search engine may select a different version as canonical.

Can I point a canonical tag to another website?

Yes, a cross-domain canonical is possible, typically for syndicated content where another site is the original source. Use it deliberately, because it asks search engines to treat the other site as the main version.

Related articles

Enjoyed this? Get the next one.