{"id":14559,"date":"2019-11-13T06:46:23","date_gmt":"2019-11-13T06:46:23","guid":{"rendered":"https:\/\/trafficradius.com.au\/?p=2894"},"modified":"2024-03-21T09:44:07","modified_gmt":"2024-03-21T09:44:07","slug":"everything-about-canonical-url","status":"publish","type":"post","link":"https:\/\/trdemo.com.au\/demo-traffic\/blog\/seo\/everything-about-canonical-url\/","title":{"rendered":"Everything You Need to Know About the Canonical URL"},"content":{"rendered":"\r\n<p>You have heard about canonical URL in various SEO related articles. But what exactly is a canonical URL? Let\u2019s explore.<\/p>\r\n\r\n\r\n\r\n<p>Do have two or more pages on your website that are strikingly similar, even identical, in terms of content?<\/p>\r\n\r\n\r\n\r\n<p>This leads to a variety of confusion when it comes to optimizing such pages for SEO.<\/p>\r\n\r\n\r\n\r\n<p>How will the search engines know which page to prioritize while ranking them?<\/p>\r\n\r\n\r\n\r\n<p>Won\u2019t such pages compete with one another and end up cannibalizing each other?<\/p>\r\n\r\n\r\n\r\n<p>Do you have to sacrifice some of them so only one page gets all the SEO values?<\/p>\r\n\r\n\r\n\r\n<p>Well, thanks to a smart HTML tag \u2018rel=canonical\u2019 developed in consensus by engineers from Google, Yahoo!, and Bing, you have a relatively easier solution to a rather complex problem.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">So What Is the Canonical Link Element?<\/h2>\r\n\r\n\r\n\r\n<p>For starters, canonical link element is an HTML element that allows web developers to tackle the issue of duplicate content.<\/p>\r\n\r\n\r\n\r\n<p>When two or more pages of the same website have similar content, search engines cannot decide on which page to show.<\/p>\r\n\r\n\r\n\r\n<p>With this element, you can specify the canonical URL so the search engines know which is the preferred URL among the set of URLs. \u00a0<\/p>\r\n\r\n\r\n\r\n<p>Simply put, when you have multiple pages with similar content, you decide which page the search engine should point to based on various parameters. Then add the rel=canonical element in the header section of the other pages so the search engines can point the users towards this page in the search results.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">How Can Canonical Element Contribute Towards SEO?<\/h2>\r\n\r\n\r\n\r\n<p>Canonical element is proven to positively contribute towards your SEO objectives.<\/p>\r\n\r\n\r\n\r\n<p>By clearly defining the preferred URL, you are taking away all the confusion that search engines might face. Making it easier for search engines to rank your pages only means one thing: better ranking for your most important pages.<\/p>\r\n\r\n\r\n\r\n<p>If you have backlinks pointing to various pages that are similar to each other and if this set of URLs have a canonical URL, then the search engines can count all the links and pass on all the link juice to that single page.<\/p>\r\n\r\n\r\n\r\n<p>Think of canonical link as 301 redirect except that you are not redirecting per se.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Canonicalization \u2013 The process<\/h2>\r\n\r\n\r\n\r\n<p>Lets say that on your\u00a0<a href=\"https:\/\/trafficradius.com.au\/8-definitive-ecommerce-seo-steps\/\">ecommerce website<\/a>,\u00a0your users have multiple choices for a \u2018Products\u2019 URL. The process of canonicalization is the process of picking the most relevant\/profitable option from the set of URLs.<\/p>\r\n\r\n\r\n\r\n<p>In most cases, this is pretty much straight forward.<\/p>\r\n\r\n\r\n\r\n<p>Based on your analytics, you will find one page that out performs other pages in terms of various parameters.<\/p>\r\n\r\n\r\n\r\n<p>In other cases, picking a canonical URL might not be that easy.<\/p>\r\n\r\n\r\n\r\n<p>Either ways, you must choose one page that search engines can use as the preferred one.<\/p>\r\n\r\n\r\n\r\n<p>Always remember: Canonicalization of your similar URLs is far better than not canonicalizing.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">How to Set Canonical URL the Right Way<\/h2>\r\n\r\n\r\n\r\n<p>Let\u2019s suppose that your site has two identical pages. Identical in every sense including a 100% match for content, design, and layout. Both the pages have inbound links from similar websites with similar PA and DA values.<\/p>\r\n\r\n\r\n\r\n<p>The only difference between these pages is that they are in different sections of your site and therefore have two distinct URLs.<\/p>\r\n\r\n\r\n\r\n<p>Now if a user is searching for the product that\u2019s listed under these pages, which page should the search engine show?<\/p>\r\n\r\n\r\n\r\n<p>Unless you have set the canonical URL, there\u2019s no way to know which page will the search engine show and under what circumstances.<\/p>\r\n\r\n\r\n\r\n<p>Nobody knows for sure if the same is shown all the times. Maybe one page to shown to one set of users and other page is shown to a different set.<\/p>\r\n\r\n\r\n\r\n<p>As you can clearly see, these two pages are actually competing with each other.<\/p>\r\n\r\n\r\n\r\n<p>So how to go about this the right way? Let\u2019s see.<\/p>\r\n\r\n\r\n\r\n<p>Let\u2019s consider two URLs:<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-embed\">\r\n<div class=\"wp-block-embed__wrapper\">https:\/\/ecommerce.com\/wordpress\/seo-plugin\/<\/div>\r\n<\/figure>\r\n\r\n\r\n\r\n<figure class=\"wp-block-embed\">\r\n<div class=\"wp-block-embed__wrapper\">https:\/\/ecommerce.com\/wordpress\/plugins\/seo\/<\/div>\r\n<\/figure>\r\n\r\n\r\n\r\n<p>This is a typical scenario in an ecommerce website where a product can have two different URLs based on how users navigate to that product.<\/p>\r\n\r\n\r\n\r\n<p>In such a scenario, you would apply rel=canonical in the following way:<\/p>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\">\r\n<li>As you might have guessed by now, the first step towards setting up the canonical element is to choose the best \u00a0and the most important URL from the set of similar URLS.<\/li>\r\n<li>Next you need to add a rel=canonical link from the non-canonical to the canonical page. Let\u2019s say from the two URLs mentioned in the example above, you chose the first as the canonical URL. In the &lt;head&gt; section of the non-canonical page, the element would like this:<\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n<p>&lt;link rel=\u201dcanonical\u201d href=\u201dhttp:\/\/ecommerce.com\/wordpress\/seo-plugin\/\u201d&gt;<\/p>\r\n\r\n\r\n\r\n<p>Simple. Isn\u2019t it?<\/p>\r\n\r\n\r\n\r\n<p>Once you have done this, search engines will see these two pages as one and pass all SEO values of the non-canonical link to the canonical link. In SEO terms this is called \u2018soft redirect\u2019.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Adding rel=canonical Element Using Yoast SEO Plug-In<\/h2>\r\n\r\n\r\n\r\n<p>Many page types are supported within the Yoast SEO plug-in. It\u2019s a pretty handy tool if you want to change the canonical to something different than the current URL of the page.<\/p>\r\n\r\n\r\n\r\n<p>In a WordPress install, this plug-in renders the correct canonical URL by default.<\/p>\r\n\r\n\r\n\r\n<p>For posts, pages, and custom posts, the edits to canonical is carried out in the \u2018advanced\u2019 tab of Yoast SEO Meta Box.<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter\"><img decoding=\"async\" class=\"wp-image-2896\" src=\"https:\/\/trafficradius.com.au\/wp-content\/uploads\/2019\/11\/x1-1.png\" alt=\"yoast seo\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p>Categories, tags, and other taxonomies can be changed within the same section and other advanced uses can be changed using the wpseo_canonical filter.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Special Canonical Link Scenarios<\/h2>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Choosing Between 301 Redirect and Canonical<\/h2>\r\n\r\n\r\n\r\n<p>So if the 301 redirect and canonical links are very similar, and if you had a choice between the two, which one should you select?<\/p>\r\n\r\n\r\n\r\n<p>The answer is very simple. Unless you have a strong technical reason not to use a 301 redirect, you should always go for it.<\/p>\r\n\r\n\r\n\r\n<p>In extreme cases where implementing a 301 redirect would cause a technical issue or affects user experience, canonical link can be used.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Usage of Self-Referencing Canonical URL<\/h2>\r\n\r\n\r\n\r\n<p>Until now we have considered adding canonical link to a non-canonical page.<\/p>\r\n\r\n\r\n\r\n<p>Now the question is, can a page have a canonical reference to itself?<\/p>\r\n\r\n\r\n\r\n<p>And if yes, should it be set so?<\/p>\r\n\r\n\r\n\r\n<p>Going by Google\u2019s recommendation, it\u2019s a best practice to assign each page with a canonical element.<\/p>\r\n\r\n\r\n\r\n<p>This is because on most content management systems you will be able to set URL parameters without changing the content. Going by the logic, all the below<\/p>\r\n\r\n\r\n\r\n<p>links must point to the same page.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-embed\">\r\n<div class=\"wp-block-embed__wrapper\">https:\/\/ecommerce.com\/wordpress\/seo-plugin\/<\/div>\r\n<\/figure>\r\n\r\n\r\n\r\n<figure class=\"wp-block-embed\">\r\n<div class=\"wp-block-embed__wrapper\">https:\/\/ecommerce.com\/wordpress\/seo-plugin\/?isnt=it-awesome<\/div>\r\n<\/figure>\r\n\r\n\r\n\r\n<figure class=\"wp-block-embed\">\r\n<div class=\"wp-block-embed__wrapper\">https:\/\/ecommerce.com\/wordpress\/seo-plugin\/?cmpgn=twitter<\/div>\r\n<\/figure>\r\n\r\n\r\n\r\n<figure class=\"wp-block-embed\">\r\n<div class=\"wp-block-embed__wrapper\">https:\/\/ecommerce.com\/wordpress\/seo-plugin\/?cmpgn=facebook<\/div>\r\n<\/figure>\r\n\r\n\r\n\r\n<p>What if you don\u2019t have a self-referencing URL on a page that points to the best version of the URL? Well, it\u2019s highly possible that someone else could do this and create duplicate content issue.<\/p>\r\n\r\n\r\n\r\n<p>So adding a self-referencing URL is considered to be a good defensive SEO strategy.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Canonical Links Across Different Domains<\/h2>\r\n\r\n\r\n\r\n<p>So you have a great piece of content on your website and another webmaster approaches you to use it on their site. They don\u2019t need any direct SEO value out of this. It\u2019s just that they don\u2019t want their readers to miss out on the content.<\/p>\r\n\r\n\r\n\r\n<p>Should you allow it? And if you allow, will there be duplicate content issue?<\/p>\r\n\r\n\r\n\r\n<p>Well, you can allow the other site to use your content without any hesitation. That\u2019s because rel=canonical element can also be across different domains.<\/p>\r\n\r\n\r\n\r\n<p>While the other site benefits from offering valuable content to their readers, every hit to their page will only add more SEO value to yours. A true win-win situation!<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Beware of Faulty rel=canonical Implementations<\/h2>\r\n\r\n\r\n\r\n<p>While canonical elements can be of great help in avoiding duplicate content issues and creating great SEO value to your pages, you must be clearly be aware of the potential pitfalls.<\/p>\r\n\r\n\r\n\r\n<p>There are millions of examples out there in the world wide web where a faulty implementation of this element resulted in catastrophic loss of search engine rankings.<\/p>\r\n\r\n\r\n\r\n<p>Here are some of the most important aspects that you should consider:<\/p>\r\n\r\n\r\n\r\n<p>Don\u2019t canonicalize a paginated archive to page 1. The rel=canonical on page 2 should point to page 2. If you point it to page 1, search engines will actually not index the links on those deeper archive pages<\/p>\r\n\r\n\r\n\r\n<p>Make them 100% specific. For various reasons, many sites use protocol relative links, meaning they leave the http \/ https bit from their URLs. Don\u2019t do this for your canonicals. You have a preference. Show it.<\/p>\r\n\r\n\r\n\r\n<p>Base your canonical on the request URL. If you use variables like the domain or request URL used to access the current page while generating your canonical, you\u2019re doing it wrong. Your content should be aware of its own URLs. Otherwise, you could still have the same piece of content on for instance example.com and www.example.com and have them both canonicalize to themselves.<\/p>\r\n\r\n\r\n\r\n<p>Multiple rel=canonical links on a page causing havoc. Sometimes a developer of a plugin or extensions thinks that he\u2019s God\u2019s greatest gift to mankind and he knows best how to add a canonical to the page. Sometimes, that developer is right. But when he\u2019s wrong, the results can be devastating.\u00a0<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Canonical URL in the Realm of Social Networks<\/h2>\r\n\r\n\r\n\r\n<p>Major social networking sites such as Facebook and Twitter recognize canonical links and this can lead to few unwanted situations.<\/p>\r\n\r\n\r\n\r\n<p>If you share a link on Facebook that has a canonical link pointing to another page, Facebook will display the canonical link and NOT the link you shared.<\/p>\r\n\r\n\r\n\r\n<p>Also, if the link that you shared has a social plug-in such as a \u2018like\u2019 button, social networking sites will show the \u2018like\u2019 count and other metrics related to the canonical link.<\/p>\r\n\r\n\r\n\r\n<p>So the next time you share a non-canonical link on social media, you know it\u2019s not your link that you are promoting.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Advanced Applications of the Canonical Link<\/h2>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\">Canonical Link HTTP Header<\/h3>\r\n\r\n\r\n\r\n<p>All major search engines including Google support canonical links HTTP headers.<\/p>\r\n\r\n\r\n\r\n<p>Here\u2019s an example of how a header looks:<\/p>\r\n\r\n\r\n\r\n<p>Link: &lt;http:\/\/www.example.com\/white-paper.pdf&gt;; \u00a0rel=\u201dcanonical\u201d<\/p>\r\n\r\n\r\n\r\n<p>This is a good-to-know option especially if you want to canonicalize files such as PDFs.<\/p>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\">Canonical Links When Pages Are Not Similar<\/h3>\r\n\r\n\r\n\r\n<p>Although this usage of canonical linking is not recommended, you can still use it link two or more dissimilar pages.<\/p>\r\n\r\n\r\n\r\n<p>In the strictest sense, this would mean that you are trying to game the search results by transferring SEO values of one page to another that is more valuable.<\/p>\r\n\r\n\r\n\r\n<p>If search engines detect you linking of dissimilar pages, they will stop trusting your canonical links and might even penalize you. So be careful.<\/p>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\">Using rel=canonical in Tandem With hreflang=\u201dx\u201d<\/h3>\r\n\r\n\r\n\r\n<p>If your website serves users from different geographical locations with different languages, it becomes inevitable for you to use canonical linking with hreflang and related HTML elements.<\/p>\r\n\r\n\r\n\r\n<p>However, you should keep in mind that each language\u2019s canonical link points to itself. Ignoring this might have serious repercussions that will take a lot of time and effort to fix.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">The Bottom Line<\/h2>\r\n\r\n\r\n\r\n<p>There\u2019s no doubt that rel=canonical is a powerful tool at the disposal of\u00a0<a href=\"https:\/\/trafficradius.com.au\/seo-content-guide\/\">SEO specialists<\/a>.<\/p>\r\n\r\n\r\n\r\n<p>It aims to resolve one of the most crucial issues of duplicate content, especially given the importance content gets from search engines.<\/p>\r\n\r\n\r\n\r\n<p>Effective implementation of this HTML element not only takes care of the pertinent issue but also contributes significantly towards your\u00a0<a href=\"https:\/\/trafficradius.com.au\/search-engine-optimisation\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">SEO<\/a>\u00a0endeavors.<\/p>\r\n\r\n\r\n\r\n<p>With the information you\u2019ve got through this article, I am sure that you are in a position to leverage all the advantages that this element has to offer in addition to being careful about the possible pitfalls.<\/p>\r\n\r\n\r\n\r\n<p>Got an innovative idea to implement canonical linking or a nagging doubt that needs clarification? Feel free to use the comments section below and I will get back to you promptly<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>You have heard about canonical URL in various SEO related articles. But what exactly is a canonical URL? Let\u2019s explore. Do have two or more pages on your website that are strikingly similar, even identical, in terms of content? This leads to a variety of confusion when it comes to<\/p>\n","protected":false},"author":1,"featured_media":17479,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[985,806,112],"class_list":["post-14559","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-seo","tag-canonical-urls","tag-duplicate-content","tag-seo-best-practices","entry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/trdemo.com.au\/demo-traffic\/wp-json\/wp\/v2\/posts\/14559"}],"collection":[{"href":"https:\/\/trdemo.com.au\/demo-traffic\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/trdemo.com.au\/demo-traffic\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/trdemo.com.au\/demo-traffic\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/trdemo.com.au\/demo-traffic\/wp-json\/wp\/v2\/comments?post=14559"}],"version-history":[{"count":2,"href":"https:\/\/trdemo.com.au\/demo-traffic\/wp-json\/wp\/v2\/posts\/14559\/revisions"}],"predecessor-version":[{"id":19408,"href":"https:\/\/trdemo.com.au\/demo-traffic\/wp-json\/wp\/v2\/posts\/14559\/revisions\/19408"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/trdemo.com.au\/demo-traffic\/wp-json\/wp\/v2\/media\/17479"}],"wp:attachment":[{"href":"https:\/\/trdemo.com.au\/demo-traffic\/wp-json\/wp\/v2\/media?parent=14559"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/trdemo.com.au\/demo-traffic\/wp-json\/wp\/v2\/categories?post=14559"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/trdemo.com.au\/demo-traffic\/wp-json\/wp\/v2\/tags?post=14559"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}