Canonical link element

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

A canonical link element is an HTML element that helps webmasters prevent duplicate content issues in search engine optimization by specifying the "canonical" or "preferred" version of a web page. It is described in RFC 6596, which went live in April 2012.[1][2]


A major problem for search engines is to determine the original source for documents that are available on multiple URLs. Content duplication can happen in a many ways, including:[3]

  • Duplication due to GET-parameters
  • Duplication with multiple URLs due to CMS
  • Duplication due to accessibility on different hosts/protocols
  • Duplication due to print versions of websites

Duplicate content issues occur when the same content is accessible from multiple URLs.[4] For example, would be considered by search engines to be an entirely different page from, even though both URLs may reference the same content.[5] Another example is essentially the same (tabular) content, but sorted differently in various categories.

Canonical tags can also be useful to solve www and non-www duplicate content—where two URLs, identical except that one begins with "www" and the other does not, point to the same page. This particular problem can be solved by proper use of the canonical tag.[6][7]

In February 2009, Google, Yahoo and Microsoft announced support for the canonical link element, which can be inserted into the <head> section of a web page, to allow webmasters to prevent these issues.[8] The canonical link element helps webmasters make clear to the search engines which page should be credited as the original.

How search engines handle rel=canonical

Search engines try to utilise canonical link definitions as an output filter for their search results. If multiple URLs contain the same content in the result set, the canonical link URL definitions will likely be incorporated to determine the original source of the content.[citation needed]

According to Google, the canonical link element is not considered to be a directive, but rather a hint that the ranking algorithm will "honor strongly."[1][9]

While the canonical link element has its benefits, Matt Cutts, the head of Google's webspam team, has said that the search engine prefers the use of 301 redirects. Cutts said the preference for redirects is because Google's spiders can choose to ignore a canonical link element if they deem it more beneficial to do so.[10]


The canonical link element can be either used in the HTML <head /> or sent with the HTTP header of a document. For non HTML documents, the HTTP header is an alternate way to set a canonical URL.[3][11]

By the HTML 5 standard, the <link rel="canonical" href=""> HTML element must be within the <head /> section of the document.[citation needed]



<!DOCTYPE html>
  <link rel="canonical" href="" />
<link rel="canonical" href="" />


HTTP/1.1 200 OK
Content-Type: application/pdf
Link: <>; rel="canonical"
Content-Length: 4223

See also


  1. ^ a b Kupke, Joachim (2009-02-12). "Specify your canonical". Google. Retrieved 2012-08-02.
  2. ^ Cutts, Matt (2009-02-15). "Learn about the Canonical Link Element in 5 minutes". Retrieved 2012-08-02.
  3. ^ a b "Link rel=canonical: How to do URL canonicalization right". Audisto GmbH. Retrieved 2015-10-06.
  4. ^ "Duplicate content". Google. Retrieved 2012-08-02.
  5. ^ Sherwood, Callum. "What is a Canonical Link Element". First Page. Retrieved 6 October 2018.
  6. ^ Biswas, Kushal. "Canonical Issue and How to Use Canonical Tag – The Proper Way". RevenueI. Retrieved 18 June 2015.
  7. ^ Zadro, Dario. "Rel=Canonical - A Beginners Guide to Canonical Tags - Where and When to Use Them". Zadro Web. Retrieved 18 June 2015.
  8. ^ Fox, Vanessa (2009-02-12). "Google, Yahoo & Microsoft Unite On "Canonical Tag" To Reduce Duplicate Content Clutter". Search Engine Land. Retrieved 2012-08-02.
  9. ^
  10. ^ Cutts, Matt (2011-05-16). "A rel [equals] canonical corner case". Retrieved 2012-08-02.
  11. ^

11. Site Host What s "rel=canonical" link element and how it should be used for search engines. Published on 14 June 2018.

Retrieved from ""
This content was retrieved from Wikipedia :
This page is based on the copyrighted Wikipedia article "Canonical link element"; it is used under the Creative Commons Attribution-ShareAlike 3.0 Unported License (CC-BY-SA). You may redistribute it, verbatim or modified, providing that you comply with the terms of the CC-BY-SA