Skip to content
Technical SEOrel="canonical"

Canonical URL

Definition

A canonical URL is an HTML link element (<link rel="canonical" href="...">) that specifies the authoritative, primary master URL among multiple duplicate or near-duplicate pages on the web.

Why It Matters

Search engines use the canonical tag to consolidate ranking signals (PageRank, backlinks, engagement) to a single definitive URL. It prevents keyword cannibalization, resolves URL variation issues (HTTP vs HTTPS, www vs non-www, UTM tracking parameters, pagination), and protects crawl budget from index bloat.

Canonical Link Element Best Practice Requirements

Criterion / StateRequirement / TargetStatus
ProtocolStrict absolute HTTPS URL (never relative /path)Optimal
Target StatusMust resolve to HTTP 200 (never redirect or 404)Optimal
UniquenessExactly one canonical tag per document headOptimal
Self-ReferencingStandard clean pages should self-canonicalizeStandard

Practical Implementation Example

Search crawlers visiting tracking URLs like /blog/how-to-reduce-ttfb?utm_source=twitter will consolidate all link authority to the clean canonical target.

src/app/blog/[slug]/page.tsx
<!-- Declared in Next.js metadata or HTML <head> -->
<link rel="canonical" href="https://example.com/blog/how-to-reduce-ttfb" />
Automated Verification

How to Audit rel="canonical" in ScanWise

ScanWise crawls every URL on your site, verifying that canonical tags exist, use absolute HTTPS schemes, do not point to redirects or 404s, and match sitemap declarations.

Audit your canonical tags and duplicate content in ScanWise

Common rel="canonical" Mistakes & How to Fix Them

Common rel="canonical" Mistakes & How to Fix Them
MistakeWhy It HurtsThe Fix
Specifying a relative path such as href='/blog/my-post' instead of a full absolute URL.Relative canonicals are frequently misinterpreted by crawlers across subdomain or protocol boundaries.Always generate canonical URLs using your canonical base origin: https://example.com/blog/my-post.
Pointing canonical tags to URLs that return 301 redirects or 404 Not Found errors.Google ignores canonical signals pointing to non-200 endpoints, leading to erratic indexation and lost equity.Ensure canonical targets point directly to the final 200 OK destination without intermediary redirects.