29 December 2012

Disable Blogger country Specific URL Redirection

Disable Blogger country Specific URL RedirectionIf you noticed you may see Google redirects Blogger blogs to country-specific domains.For example if you open example.blogspot.com in your browser, you would be redirected to example.blogspot.in if you are located in India or if you are located in Brazil then you would be redirected to example.blogspot.br or if you are located in UK then you would be redirected to example.blogspot.co.uk .This may sometime annony your blog reader and they may get confused seeing various domain name on your blog url when visiting from several places.This may even sometimes confused you too.Reason behind country specific Urls is censorship. By this blogger can easily blog or delete any site anywhere, but to get rid of that the owner of labnol.org  made some script to save subdomain user bloggers from that.

 Must Read : Add Google Analytic On Blogger

Disable Country Specific Url Redirection

  • Log onto your blogger dashboard.
  • Then goto template tab.
  • Next click on Edit html options under template.
  • Copy-paste the following code within the template just below the <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>

  • Next click on the Save Template and you are all done.

 Must Read : Add Loading Effect Into Your Blog

Now your Blogger Subdomain Blog will always serve with the blogspot.com URL.Do you have any doubt about this post?Then just use the below comment box.Thanks
Articles You May Like

3 comments: Leave Your Comments

  1. Wow! This is great news to all bloggers like me. Love to have that specific domain of location too! Thanks for this great news.

  2. Very nice post, helpful