Friday 21 June 2013

How To Redirect Blogspot .in URL To .com URL

1- Go to Blogger Dashboard > Design > Edit HTML.
2- Take a backup/download your template.
3- Find for </head> tag.
4- Add below piece of JavaScript code just above </head> tag.

<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>
If you are big fan of blogspot, then this gonna be very helpful for you.

11 comments:

  1. Nice Post..Its working..Thanks & Keep Posting

    ReplyDelete
  2. This is a wealthy information to everyone including the beginners of web development field.Every web developers should know this kind of information.
    Website Designing Company in Bangalore

    ReplyDelete
  3. Thank you for this information.It is really informative and helpful for the people.Keep giving such a valuable information.


    website designing companies | website development company

    ReplyDelete
  4. Great amazing blog your Web Design and development process starts with a focus on your online priorities -- raising money, inspiring activism, building a community of supporters, education and awareness, etc..........Website Development Bangalore | Web Design Company Bangalore

    ReplyDelete
  5. These technical details had been of great help. Thanks for sharing!!Keep updating new posts on your blog!!
    Website Designing Company in Bangalore | Web Development Company Bangalore

    ReplyDelete
  6. Interestingly, I have a lot more information from this forum.
    HOTMAIL.COM

    ReplyDelete
  7. This comment has been removed by the author.

    ReplyDelete
  8. If you need to reinstall Windows or upgrade your motherboard, our handy guide will show you how to find or extract your Windows 10 PRODUCT KEY.

    ReplyDelete
  9. Thank you so much for this amazing guide! It is very rare to see so much valuable content,Web Development

    ReplyDelete

  10. Awesome!
    Thanks for sharing such good article. This is really helpful.

    Pixalive
    Game Apps
    News App
    Social Media
    Trending Apps

    ReplyDelete
  11. Thanks for sharing...very informative.

    On Demand Service Apps For Android and iOS are highly in demand as through this online platform. Do you want to develop On Demand Doctor App? We are leading doctor app development company that provides best Doctor mobile app development.

    ReplyDelete