Powered by Blogger.

HOW YOU STOP BLOGGER COUNTRY SPECIFIC REDIRECTION | BLOGGING

HOW YOU STOP BLOGGER COUNTRY SPECIFIC REDIRECTION :
Hello !

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.


WHY SHOULD YOU STOP REDIRECTION ?




The answer is simple. After redirection is on, you lost your Alexa ranks and the Page rank too. This is not healthy for your blogger blog. So to remove the Redirection  .


FOLLOW THE STEPS GIVEN BELOW:

 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. 

Hi Friends You Have Any Quations ? Feel Free Ask Me.................


0 comments:

Post a Comment