web

Canonical URL

Definition

A canonical URL is the preferred version of a page that search engines should treat as authoritative when multiple URLs serve similar content.

A canonical URL is declared with a `<link rel="canonical" href="…">` tag and tells search engines which URL to index when the same content is reachable from several addresses, with and without query parameters, with and without a locale prefix, trailing-slash variations. For localised sites, each language version is self-canonical (its own URL), and hreflang alternates link the siblings. ChromePing emits one canonical per rendered page via buildPageMetadata; the apex-vs-www and trailing-slash variants are 301'd at the edge so Google only ever sees the canonical.