Home How To Blogging Tips SEO

Pages

May 26, 2012

Prevent Your Blogger Blog from Redirecting to Country Specific Domains

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. Expand the widget and copy the following code immediately after <head> tag.
4. Lastly click on Save Template.
blogger edit html
<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>
You May Also Like
1. Blogger Post Summaries and Thumbnails in 3 Steps
2. Blogger Custom Search Box
3. Add Email Subscription to Your Blog or Website.

No comments:

Post a Comment

Criticism Accepted :)