Breaking News
Welcome to My Blog.
Friday, November 25, 2016

How to Redirect Blogpost.in to Blogspot.com

7:50:00 PM

How to Redirect Blogpost.in to Blogspot.com

Google redirects Blogger blogs to country specific domain extension. For example, if you open bloggertutorialshub.blogspot.com in your browser, you might be redirected to bloggertutorailshub.blogspot.in if you are located in India.


If you don't want your blog to be redirected to your country specific location and want to keep it as default .com extension, then you need to place a piece of code in your template HTML to stop the redirection. 
1. Go To Your Blogger Dashboard.
2. Click On Template.
3. Then Click On Edit Html.
4. Press CTRL+F And Find </head>
5. Copy The Given Script And Paste It Before </head> Tag. - See more at: http://nannodesign.blogspot.in/2013/05/how-to-redirect-blogspotin-to.html#sthash.XfCkbr0h.dpuf
1. Go To Your Blogger Dashboard.
2. Click On Template.
3. Then Click On Edit Html.
4. Press CTRL+F And Find </head>
5. Copy The Given Script And Paste It Before </head> Tag. - See more at: http://nannodesign.blogspot.in/2013/05/how-to-redirect-blogspotin-to.html#sthash.XfCkbr0h.dpuf
1. Go To Your Blogger Dashboard.
2. Click On Template.
3. Then Click On Edit Html.
4. Press CTRL+F And Find </head>
5. Copy The Given Script And Paste It Before </head> Tag. - See more at: http://nannodesign.blogspot.in/2013/05/how-to-redirect-blogspotin-to.html#sthash.XfCkbr0h.dpuf


 1. Go to Blogger dashboard
2. Click on Template
3. Click on Edit HTML
4. Press Ctrl + F and find <head>
5. Copy and paste the below code right after the <head> tag.
1. Go To Your Blogger Dashboard.
2. Click On Template.
3. Then Click On Edit Html.
4. Press CTRL+F And Find </head>
5. Copy The Given Script And Paste It Before </head> Tag. - See more at: http://nannodesign.blogspot.in/2013/05/how-to-redirect-blogspotin-to.html#sthash.XfCkbr0h.dpuf
1. Go To Your Blogger Dashboard.
2. Click On Template.
3. Then Click On Edit Html.
4. Press CTRL+F And Find </head>
5. Copy The Given Script And Paste It Before </head> Tag. - See more at: http://nannodesign.blogspot.in/2013/05/how-to-redirect-blogspotin-to.html#sthash.XfCkbr0h.dpuf


1. Go To Your Blogger Dashboard.
2. Click On Template.
3. Then Click On Edit Html.
4. Press CTRL+F And Find </head>
5. Copy The Given Script And Paste It Before </head> Tag. - See more at: http://nannodesign.blogspot.in/2013/05/how-to-redirect-blogspotin-to.html#sthash.XfCkbr0h.dpuf
Here's the code:
        <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> 


    Now click on Save Template and now your Blogger Blog will automatically redirects to the blogspot.com extension. 

    That's it!

    0 comments:

    Post a Comment

     
    Toggle Footer