How to Stop blogger Country Specific URL Redirection & Redirect to Blogspot.com

Google is redirecting blogger website to country specific URLs. My blogger website’s address is http://cuteface24.blogspot.com. 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 http://cuteface24.blogspot.in. 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 Blogspot.com

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

Code:

<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 += ".blogspot.com/ncr" + slug;
window.location.replace(ncr);
}
</script>

 

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

Check Also

How To Submit Verify And Add Google XML Sitemap To Blogspot Blog

Sitemap is very much essential for a website to be crawled effectively. Every site must …

One comment

  1. Your blog provided us with valuable information to work with. Thanks a lot for sharing. Keep blogging.

Leave a Reply

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

*