How To Add rel=canonical to Blogspot Blogs
By on January 31st, 2012

Google recently started redirecting Blogspot.com blogs to Blogspot.in and other country specific domains. The reason being that Google wants to give more freedom of expression to users while also being able to adhere to removal requests from different governments.

The country based redirection was first rolled out in India thanks to some recent stupid court judgments against websites in India. However, this will highly inconvenience Blogspot blog owners in India since they will not have duplicate content. Even though Google has promised to minimize the  negative effects of this change, you can definitely take an initiative to minimize the problems this will cause.

Google had introduced the rel=canonical meta tag to overcome this issue. This tag allows users to point tell search engines the actual location of the content if there are one or more URLs which have the same content, thus avoiding duplicate content on your website.

If you are Blogspot blog owner, you can avoid duplicate content by adding the following content to your template. Please note that you will have to edit the HTML code of your Blogspot template and add this before the </head> tag.

If you are using a HTML template for you blog, you should add the following code:

<ItemPage><Blogger><link href=’<$BlogItemPermalinkURL$>’ rel=’canonical’/></Blogger></ItemPage>

On the other hand if you are using a XML template, you will have to add the following code to include all meta tags:

<b:include data=’blog’ name=’all-head-content’/>

Or also individually include the rel=canonical tag by using:

<link expr:href="data:blog.url" rel="canonical"/>

Once you have added the tags, make sure to save your template and then view source of your browser to check if the tag is added to your template. That’s it. Once you have added the rel=canonical tag, search engines will only index one page instead of creating duplicate content.

Tags: , , ,
Author: Keith Dsouza Google Profile for Keith Dsouza
I am the editor-in-chief and owner of Techie Buzz. I love coding and have contributed to several open source projects in the past. You can know more about me and my projects by visiting my Personal Website. I am also a social networking enthusiast and can be found active on twitter, you can follow Keith on twitter @keithdsouza. You can click on my name to visit my Google+ profile.

Keith Dsouza has written and can be contacted at keith@techie-buzz.com.

Leave a Reply

Name (required)

Website (optional)

 
    Warning: call_user_func() expects parameter 1 to be a valid callback, function 'advanced_comment' not found or invalid function name in /home/keith/techie-buzz.com/htdocs/wp-includes/comment-template.php on line 1694
 
Copyright 2006-2012 Techie Buzz. All Rights Reserved. Our content may not be reproduced on other websites. Content Delivery by MaxCDN