Prevent Blogger Blog from Redirecting to Country Specific Domains

0 Flares Facebook 0 Twitter 0 Google+ 0 Pin It Share 0 0 Flares ×

For selective censorship google redirects your blogger blog to country specific domains. For example some countries won’t allow particular type of content. In that case google simply blocks those pages in that particular country and makes them available for other parts of the world. If your blog is abc.blogspot.com it will be redirected to abc.blogspot.in. In Australia it will be redirected to  abc.blogspot.au etc.

Steps to prevent your blog to redirect to country specific domains:

1.  Go to your blogger dashboard and click on Template
2. Click on Edit HTML ad then click on Proceed.
3. Check Expand Widget Templates and copy the following code immediately after <head> tag.
4. Lastly Save and Close Template.
After few days of implementing this code search engines like google will remember your blog as .com which drives more traffic to your blog.

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

code to redirect to .com

If you enjoyed this article, Get email updates (It’s Free)
0 Flares Facebook 0 Twitter 0 Google+ 0 Pin It Share 0 0 Flares ×

About Anil Anvesh

+Anil Anvesh, a passionate Tech Blogger, bookworm and a music lover.
This entry was posted in Blogging and tagged . Bookmark the permalink.