SEO·AEO·GEO

SEO glossary · Updated

The canonical tag: how to tell Google which URL to index

A canonical tag (rel="canonical") tells search engines which URL is the main version of a page when the same content is available at several addresses.

Aalhad, Founder, SEO·AEO·GEO

Founder, SEO·AEO·GEO

Builds SEO·AEO·GEO and writes the crawler, schema, and citation research published here.

A canonical tag is a line in a page's HTML head that names the preferred URL for that content. Search engines use it to pick one version to index when the same page is reachable at several addresses, for example with and without tracking parameters, or with www and without.

<link rel="canonical" href="https://example.com/blue-widgets">

How Google treats it

Google treats rel="canonical" as a strong hint, not a command. It weighs it with other signals, such as redirects (a strong signal), sitemaps (a weaker one) and internal links. If signals disagree, Google may choose a different canonical. Search Console's URL Inspection tool shows which URL Google chose.

When you need one

  • Every indexable page: a self-referencing canonical is a good default.
  • Pages with tracking or sorting parameters.
  • The same product in several categories with different URLs.
  • HTTP and HTTPS, or www and non-www versions (also redirect these).
  • Syndicated content republished on another site (point it at the original).

Common mistakes

  1. Every page's canonical points at the homepage, which asks Google to drop the rest.
  2. Relative or broken canonical URLs.
  3. Canonical to a page that redirects, is noindexed or returns 404.
  4. Paginated pages all canonicalized to page one, hiding the items on later pages.
  5. Canonical in the HTML disagrees with one in the HTTP header.

Check it on your own site

What the free audit tests for this

  • Canonical

One URL, about 20 seconds, no login. You get the result of every check and the exact fix for the top three issues.

Audit your website free

FAQ

Is a canonical tag the same as a redirect?+

No. A redirect sends visitors and crawlers to another URL; a canonical leaves the page reachable but asks search engines to index the preferred version.

Does duplicate content cause a penalty?+

Google says duplicate content isn't a penalty, though it's inefficient. Canonicals help Google consolidate signals onto one URL.

Should every page have a canonical tag?+

It's a good default to add a self-referencing canonical to every indexable page, so parameters and copies point back to the original.

Sources

  1. How to specify a canonical URL — Google Search Central
  2. SEO Starter Guide — Google Search Central (2025-12-10)