What Is a Canonical Tag?
A canonical tag is an HTML element placed in the <head> of a page that tells search engines which URL is the preferred version to index when multiple URLs contain the same or very similar content. It is written as <link rel="canonical" href="https://example.com/page/">.
Without canonical tags, search engines have to guess which version to rank — and they often guess wrong, splitting your ranking signals across duplicates.
When You Need a Canonical Tag
- Parameter URLs:
?sort=price,?color=red,?ref=newsletter - WWW vs non-WWW:
example.comvswww.example.com - HTTP vs HTTPS: older protocol variants still linked from elsewhere
- Trailing slash variants:
/pagevs/page/ - Pagination: page 2, 3, 4 of a listing
- Printer-friendly pages:
/print/articlevs/article - Syndicated content: content republished from another site
- E-commerce filters: same product under different category paths
Canonical Tag Rules You Must Follow
- One per page. Multiple canonicals confuse crawlers and can be ignored entirely.
- Use absolute URLs. Always include
https://and the full domain. - Self-referencing is best practice. Every page should canonical to itself, even unique pages.
- Point to a 200 OK page. Never point to a 404, redirect or blocked URL.
- Use the same protocol. Don't canonical HTTP to HTTPS across a redirect chain unnecessarily.
- Don't canonical to a different language version. Use
hreflangfor that instead. - Keep it consistent. The canonical URL should match your sitemap and internal links.
Common Canonical Mistakes
| Mistake | Problem | Fix |
|---|---|---|
| Multiple canonicals on one page | Google ignores all of them | Keep only one, self-referencing |
| Relative URL | May resolve incorrectly per-page | Use full absolute URL |
| Canonical points to 404 | Crawl errors, lost signals | Update to a live URL |
| Canonical to homepage from every page | Deindexes all inner pages | Each page canonical to itself unless it's a true duplicate |
| Chain of canonicals (A → B → C) | Signals get lost in the chain | Point directly to the final canonical |
| Canonical + noindex combined | Contradictory signals | Pick one — usually self-canonical, no noindex |
Canonical vs Other SEO Tags
- Canonical — tells search engines the preferred URL for indexing.
- hreflang — tells search engines which language/region version to show.
- robots meta noindex — tells search engines to remove the page from the index.
- 301 redirect — tells browsers and crawlers to move to a new URL permanently. Prefer this over canonical when the old URL should not be reachable.
- og:url — used by social platforms for the canonical social-share URL.
Pro Tip: Self-referencing canonicals aren't redundant — they actively protect you from URL-parameter duplication, protocol mismatches and unexpected tracking links. Add them to every page, not just pages you think might have duplicates.