Stop Blogger from Redirecting to Country-Specific Domains

You know that blogger have different URL in different countries. Suppose you have a blog on Blogger/Blogspot platform, You might have noticed it already. One have a blog in blogger.com named example.blogspot.com and when a user from india visited his blog the URL was example.blogspot.in and another visitor from france got example.blogspot.fr


This implementation was done by Google because of Selective censorship (to block a blog or page easily).

Prevent Blogger from Redirecting to Country-Specific Domains

This country based URL redirection is likely to impact your Blogger blogs in a not so positive manner. For example:
  1. The social stats – like your Facebook Likes, Google +1s and Tweet counts – for your blog posts may be reduced as the URLs for the same blog post will be different for different visitors.
  2. You will have a similar problem if you are using an external commenting platform like Disqus or Facebook Comments because the blog URLs will be different even when the underlying page is the same.
  3. Also, if canonicalization isn’t implemented properly, it may cost you some Google juice as external websites may link to your country-specific pages.
  4. Some users have reported a dip in Google AdSense earnings when pages are served through country-specific domains.
If you are not happy with the idea of Blogger redirecting your blog to a different URL, you can add the following piece of code to your Blogger template and it will always serve the .com address to your visitors irrespective of their geographic location.


When I log in my Blogger dashboard and checks blog traffic Statistics, It’s giving some country specific domain name of blog URL in more than 10 countries.

These are Some example list of Domain Names I have observed in my dashboard, These are Domain Extensions List
  • Argentina (blogspot.com.ar)
  • Australia (blogspot.com.au)
  • Brazil (blogspot.br)
  • Canada (blogspot.ca)
  • Germany (blogspot.de)
  • India (blogspot.in)
  • Italy (blogspot.it)
  • France (blogspot.fr)
  • Japan (blog spot.jp)
  • Mexico (blogspot.mx)
  • Portugal (blogspot.pt)
  • Spanish (blogspot.cl)
  • Sweden (blog spot.se)

Prevent Redirection

It is that a small piece of HTML tag allows us to do this operation. All you want to do is to paste the the HTML tag in your template.

Steps to configure your blogger blog to stop country specific domain redirection:
1. Go to Dashboard » Template » Edit HTML

2. Now press CTRL + F, in the search box type  <head>

3. Now paste the specific Script after the <head> script given below

<link expr:href="data:blog.canonicalUrl" rel="canonical"/>
<script type="text/javascript">
      var blog = document.location.hostname.split(".");
      if (blog[blog.length - 1] != "com") {
        var ncr = "http://" + blog[0] + ".blogspot.com/ncr";
        window.location.replace(ncr + document.location.pathname);    
      }
    </script>  

4. Click on save template. Then click on View Blog. That’s it.

Now your blogger blog serve with blogspot.com not country specific if the user comes from anywhere from the world.
Stop Blogger from Redirecting to Country-Specific Domains Stop Blogger from Redirecting to Country-Specific Domains Reviewed by Mukesh Mali on 5/12/2017 Rating: 5

No comments:

Powered by Blogger.