How to stop country redirection of .blogspot domain

Blogspot domain

All blogs on the blogspot platform come with a .blogspot attached to the url of the blog e.g oscarleeblog.blogspot.com until a custom domain name is linked to the blog which would redirect the former .blogspot domain to the new custom domain like .com, .uk etc. Also the .blogspot domain redirect to specific countries by default, that when  sometimes a domain would look like yourdomain.blogspot.com.ng,yourdomain.blogspot.in and the rest. In this post, I’ll reveal a code that can be placed in your blog template HTML code to permanently stop the country redirection.

 HOW?

  • Sign in to your blogger dashboard >>>Template >>> Edit HTML then search for </head> by using the search box by clicking CTRL+F
  • Once you locate the </head> tag, place the code below directly under it

<script type=”text/javascript”>
var blog = document.location.href.toLowerCase();
if (!blog.match(/.blogspot.com/)) {
blog = blog.replace(/.blogspot..*?//, “.blogspot.com/ncr/”);
window.location.replace(blog);
}
</script>

Then click the save Template button.

That’s all.

3 Comments

  1. Tarrmie de Man March 18, 2016
  2. Anonymous November 19, 2017
  3. Aliyu Ndagi September 28, 2019

Leave a Reply