Wednesday, 27 June 2012

Disable Country Specific URL Redirect For Your Blogger Blog

Blogger had recently started to redirect blogspot blogs to country specific URL. This means that blog’s URL redirects from .com to country specific .in or .au or .uk etc. That means if you are reading blog from Australia than the URL would be redirected to .au. A report says that many countries are affected from this. These countries are

  1. Argentina [blogspot.com.ar] 
  2. Australia [blogspot.com.au] 
  3. Brazil [blogspot.com.br] 
  4. Canada [blogspot.ca] 
  5. Czech Republic [blogspot.cz]
  6. France [blogspot.fr] 
  7. Germany [blogspot.de] 
  8. Hong Kong [blogspot.hk]
  9. India [blogspot.in] 
  10. Italy [blogspot.it] 
  11. Japan [blogspot.jp] 
  12. Mexico [blogspot.mx] 
  13. New Zealand [blogspot.co.nz] 
  14. Portugal [blogspot.pt] 
  15. Romania [blogspot.ro]
  16. Spain [blogspot.com.es] 
  17. Sweden [blogspot.se] 
  18. UK [blogspot.co.uk]



If you want to prevent this country specific redirection then follow the steps given below.

Step 1

Goto 'Design' from your blogger dashboard.

Step 2

Then select 'Edit HTML'.

Step 3

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.

3 comments:

  1. I am not sure where you are getting your information, but good topic. I needs to spend some time learning much more or understanding more. Thanks for excellent information I was looking for this info for my mission.
    website design

    ReplyDelete
  2. Nice Article and a very good topic to discuss on.... I like it... :)

    Also check Best Travel Agency in Delhi

    ReplyDelete

Related Posts Plugin for WordPress, Blogger...