Before that you must be wondering that why should you stop redirection. The answer is simple. After redirection is on, you lost your Alexa ranks and the Pagerank juice too. This is not healthy for your blogger blog. So to remove the Redirection follow the steps given below.
Adding the JS
We will need to add JavaScript which will stop redirection. So to add this script firstly go to Blog Title → Template → Edit HTML. Press Ctrl + F and search for <head> and paste the below given code just below it.
<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>
After adding the code save the template. You are done now. Now whenever a person tries to visit your blog, inspite of being redirected he will be at the original blog URL.
0 comments:
Post a Comment