How To Prevent Blogger Blog From Redirecting To Country-Specific Domains

Most Bloggers knew that recently Google redirects blogger blogs their respective Country code TLD’s. Like if you are browsing a blog from Australia, it will be redirecting .com to .com.au domain. For instance, if you open xyz.blogspot.com in your browser, you will be redirected to xyz.blogspot.com.au if you are browsing from Australia.

Why Google redirects Blogger Blogs to Country Specific?

Google implemented this blogger blog redirection because of censorship on Internet and hide unwanted content. They started categorizing the content based on the writer & the reader’s country. A site with having unwanted contents, will be block in some countries but still have it displayed in the others.

Disadvantages of Country Specific Redirection

There are many problems with country specific domain redirection, from SEO to social share count., List of disadvantages …

  •  Social shares will be changed with country specific domains.If your blog xyz.blogspot.com has 5 tweets it will be changed with xyz. blogspot.com.au .
  •  No of backlinks will be different for each of the country specific domains and your blog will lose alexa rankings.
  •  It might problem with some applications and widgets.

How To Stop redirects Blogger Blogs to Country Specific?

You can stop this country specific redirection for your blogger blog by using a JavaScript code.  Once added this code in your template your blog will simply redirects blogspot.com instead of redirecting to the country-specific domain names.

Steps to place JavaScript code:

1. Log In to Blogger account and visit your dashboard
2. Click on design of your Blog
3. Click on Edit HTML

<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>

4. Now copy the above code and search this line on your blogger template.

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

5.  Paste the java script code below that line and save your template.

Now your visitors from anywhere in the world can see your blogspot.com domain only.

Be Sociable, Share!
  • http://www.mybackyardfurniture.com Bryan Harnois

    It is very rare these days to find blogs that provide information someone is looking for. I am glad to see that your blog share valued information that can help to many readers. Thanks and keep writing!
    yard furniture

  • http://sexoffenderissues.blogspot.com/ Sex Offender Issues

    This doesn’t work if they are on a mobile device and the “?m=1″ parameters is added to the end of the URL. Got a fix for that?