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.

-- continue reading after ad below --
Loading...

That’s all.

Loading...

Comments

  1. we should appreciate this development from Google rather than trying to hide it..

  2. I like the efforts you have put in this, thank you for
    all the great content.

Speak Your Mind

*

%d bloggers like this: