Link
canonical
Names the preferred URL for the current document. Search engines can use it to consolidate duplicate URLs and their signals.
Code examples
Good example
<link rel="canonical" href="https://www.example.com/products/widget">Declares one absolute preferred URL for the current page.
Avoid this example
<link rel="canonical">Has no href, so it does not identify a preferred URL.
Recommendations
- 01Point to a usable pageUse an absolute URL for a canonical page that returns a successful response and is eligible for indexing. Avoid redirects and error pages.
- 02Keep signals consistentUse the same preferred URL in canonicals, internal links, redirects, and sitemaps. Conflicting signals can cause search engines to choose another URL.
- 03Use one canonicalMultiple canonical declarations can make the signal ambiguous. Emit one clear URL per page.