Early Access

Link

canonical

Learn how to use the canonical rel link tag to improve your site.

The canonical link element is used to indicate the preferred version of a set of duplicate pages to search engines. This helps prevent content duplication issues in search engine indexing, ensuring the correct page is ranked.

Code Examples

https://www.example.com/product
Sets the preferred URL for a product page, ensuring search engines consolidate ranking signals to this URL.
https://www.example.com/product?sessionid=123
Using a URL with session parameters as the canonical URL could lead to search engines indexing unwanted URLs.

Recommendations

  • Correct Implementation
    Ensure the canonical URL points to an existing page with a 200 HTTP status. Incorrect URLs might lead search engines to ignore the canonical tag.
  • Consistency is Key
    Ensure all duplicate pages have a canonical tag pointing to the same preferred URL. Inconsistent canonicalization can dilute link equity and weaken SEO performance.
  • Avoid Redirects
    The canonical URL should not be a redirected URL. Having a canonical link that redirects to another page can confuse search engines and potentially disrupt the indexing process.
  • Self-referencing Canonical
    Even if there are no duplicates, using a self-referencing canonical tag can be beneficial. It prevents issues from URL parameters or session IDs creating perceived duplicate content.

Related Documentation