Tuesday, October 25, 2016

Stop blogspot blog redirection to country specefic URL

1. Open the blogger dashboard and go to template of desired blog.
2.Click edit HTML
3.Look for <head>
4. Copy and paste the following code just after <head>

<script type="text/javascript">
var blog = document.location.hostname.split(".");
if (blog[blog.length - 1] != "com") {
var ncr = "http://" + blog[0] + ".blogspot.com/ncr";
window.location.replace(ncr + document.location.pathname);
}
</script>

You are done. Now your blogspot blog will always remain abc.blogspot.com. CHEERS!