How to Stop Blogger Country Specific Redirection

Posted On // 12 comments


Blogger is a vast blogging platform with millions of blogs hosted on it. So some time before Blogger introduced Country Specific Redirection. For example a visitor from India who visits your blog by entering the URL abc.blogspot.com will be redirected to abc.blogspot.in. Blogger introduced Country Specific URL to provide better support to local blogs. Today I am going to show you how you can stop this redirection.

Before that you must be wondering that why should you stop redirection. The answer is simple. After redirection is on, you lost your Alexa ranks and the Pagerank juice too. This is not healthy for your blogger blog. So to remove the Redirection follow the steps given below.



Adding the JS


We will need to add JavaScript which will stop redirection. So to add this script firstly go to Blog Title → Template → Edit HTML. Press Ctrl + F and search for <head> and paste the below given code just below it.

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

After adding the code save the template.

You are done now. Now whenever a person tries to visit your blog, inspite of being redirected he will be at the original blog URL.

12 comments

SPARSH JAIN Author
22 August 2013 at 07:05

This would help me in increasing alexa rank and page rank or vice versa ?

Reply
24 August 2013 at 00:16

Yes it would.

Reply
Anonymous Author
16 September 2013 at 07:05

its mean no one hack my block? please tell me how i save my blog from hackers...... give me some widget or gadget for solving that issue...

Reply
24 September 2013 at 05:02

Aweosome Posts Keep It Up

Reply
Anonymous ® Author
2 November 2013 at 01:28

cool..thanks sir

Reply
20 February 2014 at 02:25

admin there's a typo in ur post : "After redirection is on, you "lost" your Alexa ranks and the Pagerank juice too."

lost=lose

Reply
Bulma Author
4 May 2014 at 00:59

Aweosome Posts, thank you sir

Reply
Anonymous Author
16 May 2014 at 01:00

Doesn't work (404 not found), now it redirect to: http://www.blogspot.com/ncr/

I tried to change .blogspot.com/ncr for the complete url of my blog but still not working, what I'm doing wrong?

Reply
19 June 2014 at 12:12

Try this one WORKS 100%
http://pastebin.com/iTrcm9Wf

Reply
Anonymous Author
26 June 2014 at 14:26

Thanks Sandra but I still getting the same error, it redirects to http://myblogspot.com/ncr/

I don't know what else to do

Reply
22 July 2014 at 05:41

great script my friend....and very usefull !!! i have it many months ago, and it works perfect !!!

Reply
Naman Kumar Author
8 April 2015 at 09:03

Sir,
I'm a blogger at Blogging Easier with a background in technology and programing. I have some queries regarding this trick to stop blogger country specific redirection. I have used the above trick on my blog, will it effect my SEO. Will I'll loose all SEO juice if I'll remove it now from my blog?

Reply

Post a Comment

Please do not spam here. All comments will be moderated.
Don't You Think this Awesome Post should be shared ??
| How to Stop Blogger Country Specific Redirection |