What are Canonical URLs and how can I use them in Drupal to help SEO?

Feb 18 2009

Our last blog post explained what duplicate content is and how it can affect your site’s search engine indexing and ranking.

In a nutshell, when multiple copies of a block of content or even an entire page live on more than one URL, search engines will attempt to pick the “best” version and filter out the copies when returning search results, and sometimes even drop duplicate pages from their indexes all together. The problems for webmasters include:

  1. Links from other pages and sites are sometimes split across different versions, whereas if they all pointed to one page, it would have a much better chance of ranking well against other website’s content (more links=more authority and trust).
  2. Search engines might not choose the version of your content that you want. For example, it might choose to return your blog’s home page rather than the post that matched the user’s search because your home page has more links and authority. This makes it hard for the searcher to locate the relevant content among the 10 blog posts displayed on your home page. Searcher hits the “back” button.
  3. Search engines might not index your site fully because it only will use so much bandwidth to crawl your site’s pages. If it spends this bandwidth indexing copies, it may keep valuable pages out of the index, and they can not be returned in search results.

The Canonical URL Tag to the Rescue!

Google, Yahoo and MSN recently announced that they will all support a new tag called the Canonical URL Tag which you can use to specify which version of a page you want the search engine to crawl, index and choose when it needs to apply a filter.

The tag is a piece of code that you put in your page header:

<link rel="canonical" href="http://yoursite.com/whatever-your-URL-looks-like"/>

As a temporary solution Drupal users can already install Joost deValk’s Canonical URL module so you can manage this information directly through the CMS. However note that what is offered is simply a patched version of Global Redirect. There is a patch to officially add the functionality into the module. At ImageX Media we’re looking forward to the patch landing and plan to offer Canonical urls to customers as part of our standard SEO package.

Please note that search engines consider this tag a “hint” and not a “directive” — meaning that it doesn’t have to obey your suggestion (it will consider other factors to determine relevance and proper use of the tag). But it’s highly recommended that you use this tag to give search engines a big push in the right direction.

For more information, check out the Google Webmaster Central blog’s official statment:

http://googlewebmastercentral.blogspot.com/2009/02/specify-your-canonical.html

Linda Bustos is an eCommerce Analyst for Elastic Path Software, an enterprise ecommerce framework. Linda blogs daily about Internet Marketing for online retail at the Get Elastic eCommerce Blog.

Learn from us
Sign up and receive our monthly insights directly in your inbox!

Subcribe to newsletter (no spam)

Fields