Date: - Time:

For Questions and Quick contact
Call us - FB: Oscar Lee

3.17.2016

How to stop country redirection of .blogspot domain

 how-to-make-$25-on-payoneer
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.

2 comments:

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

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

    ReplyDelete

We love to hear from you!

RECENT COMMENTS

Featured post

JAMB 2017 Results are online now - check yours here

JAMB - the Joint Admission matriculation board , has started the release of the 2017 UTME RESULTS online for the examinations that start...