Technical SEO · Intermediate

Canonical URL

A canonical URL is the preferred version of a page when the same content is available at more than one address. A canonical tag tells search engines which URL to index and credit.

Level
Intermediate
Also called
Canonical tag, rel=canonical
Tag
<link rel="canonical" href="…">
Treated as
A strong hint, not a command
Check it free
Meta Tag Checker

What is a canonical URL?

The same content can often be reached at several addresses: with and without www, with tracking parameters, with a trailing slash, or through filters. Search engines pick one version, the canonical, to index and rank, and consolidate signals like links onto it. You suggest your preferred version with a canonical tag in the page's head:

<link rel="canonical" href="https://example.com/shoes/trail-runner">

Google treats the tag as a strong hint. It can choose a different canonical if other signals (redirects, internal links, sitemaps) disagree.

Best practices

  1. Give every indexable page a self-referencing canonical.
  2. Use absolute URLs.
  3. Keep signals consistent: link internally to the canonical and list it in the sitemap.
  4. Use a 301 redirect instead when the old URL doesn't need to exist.

Common mistakes

  • Pointing every page's canonical at the home page.
  • Canonicals to URLs that redirect, 404 or are noindex.
  • Several conflicting canonical tags on one page.

Frequently asked questions

Canonical or 301 redirect?

Use a 301 when visitors should never see the old URL. Use a canonical when both URLs must stay available, such as filtered or tracking versions.

Browse the glossary

Chat on WhatsApp