{"id":24107,"date":"2009-02-12T00:00:00","date_gmt":"2009-02-12T00:00:00","guid":{"rendered":"https:\/\/alienroad.com\/google-bilgi-bankasi\/specify-your-canonical\/"},"modified":"2009-02-12T00:00:00","modified_gmt":"2009-02-12T00:00:00","slug":"specify-your-canonical","status":"publish","type":"ar_kb","link":"https:\/\/alienroad.com\/google-bilgi-bankasi\/specify-your-canonical\/","title":{"rendered":"Specify your canonical"},"content":{"rendered":"<p class=\"gargardate\">Thursday, February 12, 2009<\/p>\n<p>\n  Carpe diem on any<br \/>\n  <a href=\"https:\/\/alienroad.com\/google-bilgi-bankasi\/demystifying-the-duplicate-content-penalty\/\">duplicate content worries<\/a>:<br \/>\n  we now support a format that allows you to publicly specify your preferred version of a URL. If<br \/>\n  your site has identical or vastly similar content that&#8217;s accessible through multiple URLs, this<br \/>\n  format provides you with more control over the URL returned in search results. It also helps to<br \/>\n  make sure that properties such as link popularity are consolidated to your preferred version.\n<\/p>\n<p>\n  Let&#8217;s take our old example of a<br \/>\n  <a href=\"https:\/\/bp2.blogger.com\/_o5Na_9269nA\/RuleCxWoOXI\/AAAAAAAAAuU\/akzGuAnW5nQ-h\/swedish-fish.jpg\" class=\"external-link\">site selling Swedish fish<\/a>.<br \/>\n  Imagine that your preferred version of the URL and its content looks like this:<br \/>\n  <code>https:\/\/www.example.com\/product.php?item=swedish-fish<\/code>\n<\/p>\n<p><img decoding=\"async\" aria-hidden=\"true\" alt src=\"https:\/\/alienroad.com\/wp-content\/uploads\/kb-gorsel\/g-d1a1cff2406b.png\" loading=\"lazy\"><\/p>\n<p>\n  However, users (and Googlebot) can access Swedish fish through multiple (not as simple) URLs. Even<br \/>\n  if the key information on these URLs is the same as your preferred version, they may show slight<br \/>\n  content variations due to things like sort parameters or category navigation:<br \/>\n  <code>https:\/\/www.example.com\/product.php?item=swedish-fish&amp;category=gummy-candy<\/code>\n<\/p>\n<p><img decoding=\"async\" aria-hidden=\"true\" alt src=\"https:\/\/alienroad.com\/wp-content\/uploads\/kb-gorsel\/g-37db357caada.png\" loading=\"lazy\"><\/p>\n<p>\n  Or they have completely identical content, but with different URLs due to things such as a<br \/>\n  tracking parameters or a session ID:<br \/>\n  <code>https:\/\/www.example.com\/product.php?item=swedish-fish&amp;trackingid=1234&amp;sessionid=5678<\/code>\n<\/p>\n<p><img decoding=\"async\" aria-hidden=\"true\" alt src=\"https:\/\/alienroad.com\/wp-content\/uploads\/kb-gorsel\/g-d1a1cff2406b.png\" loading=\"lazy\"><\/p>\n<p>\n  Now, you can simply add this <code>&lt;link \/&gt;<\/code> tag to specify your preferred version:<br \/>\n  <code>&lt;link rel=\"canonical\" href=\"https:\/\/www.example.com\/product.php?item=swedish-fish\" \/&gt;<\/code><br \/>\n  inside the <code> &lt;head&gt;<\/code> section of the duplicate content URLs:\n<\/p>\n<div><\/div>\n<p>\n  and Google will understand that the duplicates all refer to the canonical URL:<br \/>\n  <code>https:\/\/www.example.com\/product.php?item=swedish-fish<\/code>. Additional URL properties, like<br \/>\n  PageRank and related signals, are transferred as well.\n<\/p>\n<p>This standard can be adopted by any search engine when crawling and indexing your site.<\/p>\n<p>\n  Of course you may have more questions.<br \/>\n  <a href=\"https:\/\/research.google.com\/pubs\/author3778\" class=\"external-link\">Joachim Kupke<\/a>,<br \/>\n  an engineer from our Indexing Team, is here to provide us with the answers:\n<\/p>\n<p>\n  <b>Is <code>rel=\"canonical\"<\/code> a hint or a command?<\/b><br \/>\n  It&#8217;s a hint that we honor strongly. We&#8217;ll take your preference into account, in conjunction with<br \/>\n  other signals, when calculating the most relevant page to display in search results.\n<\/p>\n<p>\n  <b>Can I use a relative path to specify the canonical, such as<br \/>\n    <code>&lt;link rel=\"canonical\" href=\"product.php?item=swedish-fish\" \/&gt;<\/code>?<\/b><br \/>\n  Yes, relative paths are recognized as expected with the <code>&lt;link \/&gt;<\/code> tag. Also, if<br \/>\n  you include a <code>&lt;base \/&gt;<\/code> link in your document, relative paths will resolve<br \/>\n  according to the base URL.\n<\/p>\n<p>\n  <b>Is it okay if the canonical is not an exact duplicate of the content?<\/b><br \/>\n  We allow slight differences, for example, in the sort order of a table of products. We also<br \/>\n  recognize that we may crawl the canonical and the duplicate pages at different points in time,<br \/>\n  so we may occasionally see different versions of your content. All of that is okay with us.\n<\/p>\n<p>\n  <b>What if the <code>rel=\"canonical\"<\/code> returns a <code>404<\/code>?<\/b><br \/>\n  We&#8217;ll continue to index your content and use a heuristic to find a canonical, but we recommend<br \/>\n  that you specify existent URLs as canonicals.\n<\/p>\n<p>\n  <b>What if the <code>rel=\"canonical\"<\/code> hasn&#8217;t yet been indexed?<\/b><br \/>\n  Like all public content on the web, we strive to discover and crawl a designated canonical URL<br \/>\n  quickly. As soon as we index it, we&#8217;ll immediately reconsider the<br \/>\n  <code>rel=\"canonical\"<\/code> hint.\n<\/p>\n<p>\n  <b>Can <code>rel=\"canonical\"<\/code> be a redirect?<\/b><br \/>\n  Yes, you can specify a URL that redirects as a canonical URL. Google will then process the<br \/>\n  redirect as usual and try to index it.\n<\/p>\n<p>\n  <b>What if I have contradictory <code>rel=\"canonical\"<\/code> designations?<\/b><br \/>\n  Our algorithm is lenient: We can follow canonical chains, but we strongly recommend that you<br \/>\n  update links to point to a single canonical page to ensure optimal canonicalization results.\n<\/p>\n<aside class=\"note\">\n  Update on 12\/17\/2009: The answer is yes! We now support a<br \/>\n  <a href=\"https:\/\/alienroad.com\/google-bilgi-bankasi\/handling-legitimate-cross-domain-content-duplication\/\">cross-domain <code>rel=\"canonical\"<\/code><\/a><br \/>\n  link element.<br \/>\n<\/aside>\n<p>\n  <b>Can this link tag be used to suggest a canonical URL on a completely different domain?<\/b><br \/>\n  <br \/>\n  No. To migrate to a completely different domain, permanent (<code>301<\/code>) redirects are more<br \/>\n  appropriate. Google currently will take canonicalization suggestions into account across<br \/>\n  subdomains (or within a domain), but not across domains. So site owners can suggest<br \/>\n  <code>www.example.com<\/code> vs. <code>example.com<\/code> vs. <code>help.example.com<\/code>, but<br \/>\n  not <code>example.com<\/code> vs. <code>example-widgets.com<\/code>.\n<\/p>\n<p>\n  <b>Sounds great\u2014can I see a live example?<\/b><br \/>\n  Yes,<br \/>\n  <a href=\"https:\/\/wikia.com\/\" class=\"external-link\">wikia.com<\/a><br \/>\n  helped us as a trusted tester. For example, you&#8217;ll notice that the source code on the URL<br \/>\n  <code>https:\/\/starwars.wikia.com\/wiki\/Nelvana_Limited<\/code> specifies its<br \/>\n  <code>rel=\"canonical\"<\/code> as: <code>https:\/\/starwars.wikia.com\/wiki\/Nelvana<\/code>.\n<\/p>\n<p>\n  The two URLs are nearly identical to each other, except that <code>Nelvana_Limited<\/code>, the<br \/>\n  first URL, contains a brief message near its heading. It&#8217;s a good example of using this feature.<br \/>\n  With <code>rel=\"canonical\"<\/code>, properties of the two URLs are consolidated in our index and<br \/>\n  search results display wikia.com&#8217;s intended version.\n<\/p>\n<p>\n  You can ask additional questions in our comments below. And if you&#8217;re unable to implement a<br \/>\n  canonical designation link, no worries; we&#8217;ll still do our best to select a preferred version of<br \/>\n  your duplicate content URLs, and transfer linking properties,<br \/>\n  <a href=\"https:\/\/alienroad.com\/google-bilgi-bankasi\/google-duplicate-content-caused-by-url-parameters-and-you\/\">just as we did before<\/a>.\n<\/p>\n<aside class=\"note\">\n  <b>Update<\/b>: this link-tag is currently also supported by<br \/>\n  <a href=\"https:\/\/blog.ask.com\/2009\/02\/ask-is-going-canonical\" class=\"external-link\">Ask.com<\/a>,<br \/>\n  <a href=\"https:\/\/blogs.msdn.com\/webmaster\/archive\/2009\/02\/12\/partnering-to-help-solve-duplicate-content-issues.aspx\" class=\"external-link\">Microsoft Live Search<\/a><br \/>\n  and<br \/>\n  <a href=\"https:\/\/ysearchblog.com\/2009\/02\/12\/fighting-duplication-adding-more-arrows-to-your-quiver\/\" class=\"external-link\">Yahoo!<\/a>.<br \/>\n<\/aside>\n<p>\n  For more information, please see our Help Center articles on<br \/>\n  <a href=\"https:\/\/alienroad.com\/google-bilgi-bankasi\/specify-canonical\/\">canonicalization<\/a><br \/>\n  and<br \/>\n  <a href=\"https:\/\/alienroad.com\/google-bilgi-bankasi\/specify-canonical\/\">rel=canonical<\/a>.\n<\/p>\n<p class=\"byline-author\">\n  Written by Joachim Kupke, Senior Software Engineer, and Maile Ohye, Developer Programs Tech Lead<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Thursday, February 12, 2009 Carpe diem on any duplicate content worries: we now support a format that allows you to publicly specify your preferred version of a URL. If your site has identical or vastly similar content that&#8217;s accessible through multiple URLs, this format provides you with more control over the URL returned in search [&hellip;]<\/p>\n","protected":false},"menu_order":85713,"template":"","meta":{"footnotes":""},"ar_kb_kategori":[665],"ar_kb_etiket":[],"class_list":["post-24107","ar_kb","type-ar_kb","status-publish","has-post-thumbnail","hentry","ar_kb_kategori-blog"],"_links":{"self":[{"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/ar_kb\/24107","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/ar_kb"}],"about":[{"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/types\/ar_kb"}],"version-history":[{"count":0,"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/ar_kb\/24107\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/media\/26679"}],"wp:attachment":[{"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/media?parent=24107"}],"wp:term":[{"taxonomy":"ar_kb_kategori","embeddable":true,"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/ar_kb_kategori?post=24107"},{"taxonomy":"ar_kb_etiket","embeddable":true,"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/ar_kb_etiket?post=24107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}