Get Latest Tweaks via Facebook, Twitter, Google+ & FeedBurner
    Subscribe:
    Subscribe Twitter Facebook

    Friday, August 17, 2012

    Redirect your Country Specific Blogger URL to blogspot.com

    SOCIALIZE IT →

    blogger redirection

    Lately Google changed a lot of things along with their policies. Google started redirecting blogger blogs to country-specific URL.Lets consider that you have open anyblog.blogspot.com in your browser, you might be redirected to anyblog.blogspot.in if you are located in India or to anyblog.blogspot.com.au if you access the same blog from Australia.It is not a new thing since few days that your blogspot.com blog may redirect to a country based domain. Perhaps it is worldwide. Every blogger blog owner may have the same problem of automatic redirection. So here in this post, we have a tweak that enables your blog to stay on blogspot.com URL.

    How To Redirect Your Blog To .Blogspot.Com


    1. Go to Blogger Dashboard > Design > Edit HTML.
    2. Find for </head> tag.
    3. Add below code just above </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>
    

    Save your template.
    Now your Blog will always redirect to the blogspot.com URL.


    3 comments:

    1. Hi there. Very cool website!! Man .. Beautiful .. Wonderful .. I will bookmark your site and take the feeds also…I’m happy to locate a lot of useful information right here within the post. Thank you for sharing.
      Web development Company

      ReplyDelete
    2. This looks good with the suggestion and other similar things like these nice bloggers.

      ReplyDelete
    3. This is a great inspiring article. I am pretty much pleased with your good work. You put really very helpful information. Keep it up. Keep blogging. Looking to reading your next post.Outbound Calling App

      ReplyDelete