How to Prevent your Blogger Blog from Redirecting to Country-Specific URLs

How to Prevent your Blogger Blog from Redirecting to Country-Specific URLs

The main reason why Google implemented country-specific redirection is selective censorship – they can now easily block a blog, or a particular page on a blog, in one country but still serve it in other regions.

Blogger Specific Domains country lists:

India [blogspot.in], Australia [blogspot.com.au], UK [blogspot.co.uk], Japan [blogspot.jp], New Zealand [blogspot.co.nz], Canada [blogspot.ca], Germany [blogspot.de], Italy [blogspot.it], France [blogspot.fr], Sweden [blogspot.se], Spain [blogspot.com.es], Portugal [blogspot.pt], Brazil [blogspot.com.br], Argentina [blogspot.com.ar], Mexico [blogspot.mx]
Prevent Your Blogger from Redirecting to Country-Specific Domains

1} This country based url redirection does not affect your blog,but the urls of social sharings from facebook,google plus twitter will differ for same stories.

2} You will have problems if you use external platform for comments

If you are not Satisfied with the idea of Blogger redirecting your blog to a different URL, you can add the following html code to your Blogger template and it will always serve the .com address to your visitors.

Go to your blogs dashboard and choose Template. Then click the edit html button and proceed . copy and paste the following code into the template after the <head> tag and save your template.Now blogger will redirect to only .com address.

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