Wednesday 26 February 2014

Disable Country Specific Domain Redirection In Blogger

Leave a Comment

Recently, Blogger introduces a Country Specific URL's redirection for all BlogSpot domains. Instead of the blogspot.com domain extension, your readers will see their country specific domain extensions. The redirection currently implemented on India and so far all blogspot.com domains redirecting to blogspot.in.

For exmaple: If you are viewing a blog with address blog-name.blogspot.com from India (IN), then you will be redirected to blog-name.blogspot.in. Similary, if you are viewing from Australia it will be redirected to blog-name.blogspot.com.au.

This redirection is called "country-code Top Level Domain" (ccTLD). It also knows as "302 Redirect" which is a temporary change and not a 301 redirect which is a permanent change of address.A report says that many countries are affected from this. These countries are

Argentina [blogspot.com.ar]
Australia [blogspot.com.au]
Brazil [blogspot.com.br]
Canada [blogspot.ca]
Czech Republic [blogspot.cz]
France [blogspot.fr]
Germany [blogspot.de]
Hong Kong [blogspot.hk]
India [blogspot.in]
Italy [blogspot.it]
Japan [blogspot.jp]
Mexico [blogspot.mx]
New Zealand [blogspot.co.nz]
Portugal [blogspot.pt]
Romania [blogspot.ro]
Spain [blogspot.com.es]
Sweden [blogspot.se]
UK [blogspot.co.uk]

If you want to prevent this country specific redirection then follow the steps given below.
  • Go to 'Design' from your blogger dashboard.
  • Then select 'Edit HTML'.
  • Find <Head> and paste the code given below right below it.
<script type='text/javascript'> var str= window.location.href.toString(); if ((str.indexOf('.com/'))=='-1') { var str1=str.substring(str.lastIndexOf(".blogspot.")); if (str1.indexOf('/')=='-1') { var str2=str1; } else { var str2=str1.substring(0,str1.indexOf('/')+1); } window.location.href =window.location.href.toString().replace(str2,'.blogspot.com/ncr/'); } </script>


That’s it!! Now your blog will not redirect to country specific URL. This may help your SEO too.
Read More