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 / State | Requirement / Target | Status |
|---|---|---|
| Protocol | Strict absolute HTTPS URL (never relative /path) | Optimal |
| Target Status | Must resolve to HTTP 200 (never redirect or 404) | Optimal |
| Uniqueness | Exactly one canonical tag per document head | Optimal |
| Self-Referencing | Standard clean pages should self-canonicalize | Standard |
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.
<!-- Declared in Next.js metadata or HTML <head> -->
<link rel="canonical" href="https://example.com/blog/how-to-reduce-ttfb" />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 ScanWiseCommon rel="canonical" Mistakes & How to Fix Them
| Mistake | Why It Hurts | The 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. |
Related Engineering Guides
Technical SEO Pre-Launch Checklist: 25 Non-Negotiable Checks
Validate canonical link tags, Open Graph meta tags, and indexability rules before shipping to production.
301 vs 302 Redirects for SEO: Status Codes, Link Equity & Traps
Align canonical directives with server-side permanent redirects to preserve 100% of organic search authority.
How to Find and Fix Broken Links: Crawl Budget & SEO Recovery
Discover canonical links pointing to broken 404 pages and repair crawler equity leaks.