Saturday, 26 December 2015

How To Stop Your Blog From Redirecting To .ng








Today i will be taking you through a short step on how to stop your blogger blog from redirecting to .ng
So how?





Copy and paste the code below to the head section of your blog's html. It will stop the redirection.




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

Don't know where to add the code?

==> Sign in to your Blogspot dashboard
==> Go to "Template" > "Edit HTML"
==> Click inside the html
==> Press CTRL F on your keyboard to find <head> or </head>






==> Copy the code directly below <head> or above </head>
==> Click "Save Template"

View your blog and you will notice the change in your blog url.





No comments:

Post a Comment

Designed by Mezy Kings