Ads (728x90)

Latest Post

Kesehatan

Tips

Disable Blogger country Specific URL Redirection


Google redirects Blogger blogs to country-specific domains.For example if you open example.blogspot.com in your browser, you might be redirected to example.blogspot.in if you are located in India or if you are located in Brazil then you might be redirected to example.blogspot.br .


Reason behind country specific Urls is censorship. By this blogger can easily blog or delete any site.


How to Disable It?



  • Go to blogger dashboard.
  • Click on template tab.
  • Now click on Edit html button.
  • Copy-paste the following code into the template after 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>

  • Click the Save Template button and now your Blogger Blog will always serve with the blogspot.com URL.
Any quary?use the comment box below.Happy blogging.

Post a Comment