How to Stop blogger Country Specific URL Redirection & Redirect to

Google is redirecting blogger website to country specific URLs. My blogger website’s address is But whenever I browse, it shows .in instead of .com. I first noticed it in AdSense page. Where it shows many section for each domain. Country Specific URL Redirection has also a serious negative effect on SEO of your website too. It decreases the social stats. Why Google is doing it? As Google will have more control over your blog. It can block that domain on specific country but still can accessible from another country. It is now available on 15 countries. Although I live in Bangladesh, But it redirects me to It seems that Google can not differentiate between India and Bangladesh. This redirection is called 302 Redirect. The solution is quite simple, if you know it. One is to buy custom domain, But that’s not the point. There are another simple solution of this problem. Just to add a piece of code within your html of theme template. So in this post, I am going to show you how you can Prevent Blogger Country Specific URL Redirection and always redirect to .com domain.

How to Stop blogger Country Specific URL Redirection & Always Redirect to

Prevent your Country Specific Domains Redirection:

  1. Go to your blogger dashboard and click on Template
  2. Keep a backup, in case anything goes wrong.
  3. Click on Edit HTML ad then click on Proceed.
  4. Find for </head> tag.
  5. Add below piece of JavaScript code just above </head> tag.
  6. Now save your template.
  7. After few days of implementing this code search engines like Google will remember your blog as .com which drives more traffic to your blog.

Code Backup


<script type="text/javascript">
var blog = document.location.hostname;
var slug = document.location.pathname;
var ctld = blog.substr(blog.lastIndexOf("."));
if (ctld != ".com") {
var ncr = "http://" + blog.substr(0, blog.indexOf("."));
ncr += "" + slug;


Ok, That’s all. If you have any problems, Please let me know. Thanks

Leave a Reply

Your email address will not be published. Required fields are marked *