Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

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.


This post first appeared on Tech Bells, please read the originial post: here

Share the post

Disable Country Specific URL Redirect For Your Blogger Blog

×

Subscribe to Tech Bells

Get updates delivered right to your inbox!

Thank you for your subscription

×