Don't Miss

How to Stop Blogger Country Specific Redirection

By Zohaib Liaqat - 5 Comments
Blogger uses Country specific domain redirection that changes your blog URL according to your visitor country. For example, if your blog address is yourblog.blogspot.com and someone is visiting your blog from canada, he will be redirected to yourblog.blogspot.ca instead of yourblog.blogspot.com and if someone is visiting your blog from Italy then he will be redirected to yourblog.blogspot.it.
How to Stop Blogger Country Specific Redirection
Why you Should Stop Blogger Country Specific Redirection? The answer is simple, it will effect your alexa ranking and your pagerank too, due to different URL's. This redirection is called Country Specific Redirection or "country-code Top Level Domain" (ccTLD). The blogs with custom domains are not affected by this method. About 20 countries are affected by this redirection. Today in this tutorial we'll show you that How to Stop Blogger Country Specific Redirection.

How to Stop Blogger Country Specific Redirection

First for foremost go to Blogger.com and Log in to your account. Select a Blog >> Template >> Edit HTML and search for the <head> tag. Now copy(Ctrl + C) the following piece of code and paste(Ctrl + V) it just below/after <head> tag.

<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>

Hit the Save Template button and you're done.

From Editors Desk

We hope this tutorial may have helped you in learning How to Stop Blogger Country Specific Redirection. Share this tutorial with your friends and don't forget to subscribe us.

5 comments to ''How to Stop Blogger Country Specific Redirection"

ADD COMMENT
  1. Very informative publish!! Your suggestions are first-rate concerning motivation. Right here you've got posted anything new so I love your web publication. And also your article is unique for one and all readers. Really excellent to know about it. I'm tremendously happy so high-quality. Every time I come here, I get some very useful info. This one is the best post on. Thanks for sharing this unique article. custom essays

    ReplyDelete
  2. Plus, a support company dedicated to best new website design providing the greatest levels of transparency and clarity to the clients' strategies.

    ReplyDelete