Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Stop Blogger From Redirecting Your Blogspot Blog To Country-Specific URL
<script type="text/javascript">
var blog = document.location.href.toLowerCase();
if (!blog.match(/\.blogspot\.com/)) {
blog = blog.replace(/\.blogspot\..*?\//, ".blogspot.com/ncr/");
window.location.replace(blog);
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment