The word SEO is an umbrella term covering A to Z aspects of optimizing a website. There are many jargons used in SEO industry like nofollow, noindex, canonical, etc,. Though some terms are easy to understand some others are not. Canonical URL is one such term not easy for all users to understand. Especially using content management systems like WordPress makes it difficult to understand how exactly it works. In this article, let us explore more on what is canonical URL and how to use it in WordPress site.
Duplicate URL Issue in WordPress
In order to understand canonical URL, first you should understand the content duplication issue. Let us take a simple example in WordPress that you have a blog post with 100+ comments. Now that the page length is so long and you are deciding to breakdown the comments into 20 using pagination. This can be easily done by going to “Settings > Discussions” section in your WordPress admin panel.
Now what exactly happens here is that a single post is divided into multiple pages. The content is same but the comments are different. This will be generally divided like below:
- Yoursite.com/post-name/ (81 – 100 comments)
- Yoursite.com/post-name/comment-page-1 (61 – 80 comments)
- Yoursite.com/post-name/comment-page-2/ (41 – 60 comments)
- Yoursite.com/post-name/comment-page-3/ (21 – 40 comments)
- Yoursite.com/post-name/comment-page-4/ (1 – 20 comments)
For search engines like Google, these five pages are completely different as the URLs are different. However, it is not the actual case as the content is same on all these pages. This will result in duplicate content and search engines will penalize the page and lower the rank on the search results.
Informing Search Engines About the Correct URL
In the above URL duplication issue, the solution is to inform search engines about the correct and single URL. This correct and single URL is called “Canonical URL” which helps search engines to understand all these pages are same and pointing to a single resource (that is the first URL) on your site. Above is a very simple example, but there are many situations you may need to manually split single post into multiple pages in WordPress which will result in same issue.
Examples of Duplicate Content Issue in WordPress
Let us assume you will not add the same content on two pages knowingly. But there are many other factors will create duplicate content in WordPress:
- Same URL with and without taxonomies like category and tag.
- In the above example, two different bloggers link to two different comment pages while the content is same, Google will get confused as a search engine.
- With and without HTTP / HTTPS.
- With and without WWW.
- Using parameters like sessions id, topic id and reply id in URLs is very common in forum sites.
- Multiple posts have same titles or meta description.
- You may be writing part 1, 2, 3 and 4 of same article in 4 different posts.
In all such scenario, you as a site owner is responsible to inform search engines about the correct URL where the original content is located.
Using Canonical Link Tag
As the situation is more valid, there is a predefined solution to avoid duplicate content issue. You should add the below link tag inside the header section of each duplicated pages.
<link rel="canonical" href="Original Content URL">
The rel=”canonical” link tag will inform Google and other search engines that the mentioned URL is the target URL for the content though the actual URL of the page may be different. It should be added like below when you look into the source HTML of your site.
How to Add Canonical URL in WordPress?
WordPress is a complex platform which does not have a default option to insert link tags into the head section of your site. So, the solution is to go for a SEO plugin. As far as we have checked, all popular SEO plugins have this option. Let us take an example of Yoast SEO plugin. After installing and activating the plugin, navigate to post editor and go to Yoast SEO meta box showing below the content. Scroll down under “SEO” tab and expand “Advanced” section, you will see the canonical URL box for you to enter the correct URL.
The plugin also makes it very easy by adding the canonical URL automatically for the cases like comment pagination, page breaks, etc.
How to Find Existing Content Duplication?
Well, it is easy to add the canonical tag to the new pages you create. What about the existing pages on your site? There are no simple solutions for that. Earlier, you could use Google Search Console to find the pages having duplicate titles and meta description. This was showing under “Search Appearance > HTML Improvements” section like below. You could click on the issue to find the count and get more details of the issue. Unfortunately, this option is not available in the latest Google Search Console.
The best option is to check your XML Sitemap and find the duplicated topics for taking action.
301 Redirect Vs Canonical Link Element
You may be wondering the difference between the 301 redirect and canonical link element. It is very simple – 301 redirect will permanently guide search engines and users to different URLs. You can use 301 redirection in situations like changing the Page URL and moving content from one location to another location within or across the site. Basically 301 redirect is used for retaining the page rank of the existing URL.
On other hand, rel=”canonical” tag is used to avoid content duplication issue. This will not redirect to another page, but inform search engines that multiple pages have the same content. Remember, Bing search engine prefers 301 redirects and URL parameter normalization compared to canonical URL. So this canonical link is mainly useful with Google and other search engines that follow this rule.
Leave a Reply
Your email is safe with us.