How to Implement Canonical URL on Your Website

How to Implement Canonical URL on Your Website

What is a canonical URL
A canonical tag is a way of telling search engines that a specific URL represents the master copy of a page. Using the canonical tag prevents problems caused by identical or “duplicate” content appearing on multiple URLs. Practically speaking, the canonical tag tells search engines which version of a URL you want to appear in search results.




How is it implemented

The canonical tag is part of the HTML header on a webpage. This is the same place where we put other fun SEO stuff like the title tag, meta description tag and the robots tag. The code, as in my example above, would look like this.

<link rel=”canonical” href=”http://example.com/quality-wrenches.htm”/>