Chủ Nhật, 30 tháng 9, 2012

Disable Country Specific Domain Redirection in Blogger

 
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 Australia (AU), then you will be redirected to blog-name.blogspot.com.au. Similary, if you are viewing from India it will be redirected to blog-name.blogspot.in.

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

  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.
If You Enjoyed This Post Please Take 5 Seconds To Share It.

1 nhận xét:

  1. Great post! I am actually getting ready to across this information, is very helpful my friend. Also great blog here with all of the valuable information you have. Keep up the good work you are doing here. name a company

    Trả lờiXóa

Được tạo bởi Blogger.