How to add Canonical URLs without using a WordPress Plugin

What is a canonical URL?

Canonical URL is a HTML element that helps to prevent duplicate content issues to tell search engines which version of a page to take into account when indexing your website.

Search engines face problem to determine original source for documents which are available on multiple URLs. You can help search engines using the rel=”canonical” when you have pages with similar content.

Content duplication can happen in many ways, like:

  • Duplication due to GET-parameters( Ex: Search engines consider https://wpartisan.net/quick-tips/how-to-add-canonical-urls-without-using-a-wordpress-plugin/ and https://wpartisan.net/quick-tips/how-to-add-canonical-urls-without-using-a-wordpress-plugin/?paramenter=1 entirely different URL. )
  • Duplication due to with or without WWW in the URL.
  • Duplication due to HTTP and HTTPS protocols( Ex: Search engines consider https://wpartisan.net/quick-tips/how-to-add-canonical-urls-without-using-a-wordpress-plugin/ and http://wpartisan.net/quick-tips/how-to-add-canonical-urls-without-using-a-wordpress-plugin/ entirely different URL. )

How to add in WordPress?

Leave a Reply

Your email address will not be published. Required fields are marked *