Skip to content
Free website migration on every plan, done by our team.Learn more ›
Business

Canonical tags explained: fixing duplicate content

What a canonical tag is, when you need one, how to set it in WordPress and on static sites, and the mistakes that cause search engines to ignore it.

Short answer: A canonical tag tells search engines which address is the main version of a page when the same content is reachable at several URLs. It concentrates ranking signals on one URL and prevents duplicate-content confusion.

When duplicates happen

  • With and without www, or http and https.
  • Tracking parameters such as ?utm_source=.
  • Product pages reachable through several categories.
  • Printer-friendly or paginated versions.

How to set it

Add this inside the head of the duplicate pages, pointing to the main page:

<link rel="canonical" href="https://yourdomain.com/main-page/">

WordPress SEO plugins add canonical tags automatically. Every page on our site has one.

Best practice

  1. Use absolute https URLs.
  2. Point each page's canonical at itself unless it's truly a duplicate.
  3. Combine with 301 redirects for duplicates you can remove. See 301 vs 302 redirects.
  4. Don't canonicalise to a page that's blocked or noindexed.

Frequently asked questions

Is a canonical tag a command?

It's a strong hint. Search engines usually follow it when the signals agree.

Do I need one if I have no duplicates?

A self-referencing canonical is good practice and protects against parameter duplicates.

Ready when you are

Host it where it performs

NVMe speed, offshore privacy and a written SLA — live in minutes on AuroxHost.