A Canonical Address for Equivalent Page URLs

Several URLs can expose the same representation. A site can identify its preferred URL consistently so links and discovery point to one durable location.

Source
Anbloq
Language
English
Created
Updated
Chapters
4
Reading time
1 min
In this article4 chapters
  1. Trace a catalogue detail
  2. Keep genuine variants distinct
  3. Pick a preferred URL for genuinely equivalent views
  4. Verify the preferred address returns usable content

Trace a catalogue detail

A book page can be reached with an unrelated tracking query while the ordinary detail path still identifies the same book. The preferred address can omit that transient query. Host, path, and query explain the components involved.

Keep genuine variants distinct

An independently maintained language edition needs its own address if it is meant to be found directly. A representation can differ meaningfully even when it describes the same item.[1][2]

Pick a preferred URL for genuinely equivalent views

A public item may be reachable at its stable path and at the same path with a tracking parameter. A canonical link can name the stable version and internal links and the sitemap can use that same address. A distinct filtered collection can answer a different question and needs its own assessment. See discovering public pages through HTML and sitemaps.

Preferred item URL: /items/42
Tracking variant: /items/42?channel=example
Both equivalent representations can declare the preferred address

Verify the preferred address returns usable content

Inspect status, final URL and canonical declaration with an ordinary public request. Keep canonical selection consistent across navigation and sitemap entries. An external search engine decides how to use these signals.

References

  1. IETF, RFC 9110: HTTP Semantics ↩
  2. WHATWG, HTML Living Standard: Forms ↩