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.

5 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