Prevent Blogger From Redirecting Your Blogspot Blog To Country Specific URLs

You know that blogger have different URL in different countries. Suppose you have a blog on Blogger/Blogspot platform, You might have noticed it already.One have a blog in blogger.com named example.blogspot.com and when a user from india visited his blog the URL was example.blogspot.in and another visitor from france got example.blogspot.fr
For boosting up your earnings you might want to use some kind of Ad networks, For registering on such ad network you will have to provied the URL of your blog Suppose you give example.blogspot.com you will only get earnings from visitor visiting with example.blogspot.com.And if one from india visits the blog you won’t get any earning
And what do you do if the majority of visitors come to your blog from india

Prevent Redirection

It is that a small piece of HTML tag allows us to do this operation.
All you want to do is to paste the the HTML tag in your template.Follow the guide
1.Go to Dashboard > Template >Edit HTML
2.Now press CTRL + F, in the search box type  <head>
3. now just above that paste the specific HTML tag given below
4. Now save the template and see the change

HTML :-

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


That's it guys next on wards blogger won't redirect your blog URL into a specific one


    About Astro Joseph

    Hi, I'm Astro Joseph the founder and CEO of IPEE World and IPEE Network.I started this blog for a passion and it is now empowering millions of readers around the globe.Read more about me at About and Contact page.

    Leave a Reply

    Your email address will not be published. Required fields are marked *