Latest SEO Link Building Sites

How To Redirect Blogspot .in URL To .com URL ~ SEO Updates

Saturday, December 21, 2013

How To Redirect Blogspot .in URL To .com URL

SEO SERVICES


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.

3 comments:

  1. Its great information for me..I have a getting the best information about blogger redirection...thank you for sharing the great information...SEO Company in Bangalore | SEO Services in Bangalore

    ReplyDelete
  2. Wow, What a Great Site, All of the Digital Media Related Posts Are So Informative for People Under Review. I Liked It! I Also Have a Blog/site About That Covers Digital Marketing Service Related Stuff. Please Feel Free to Visit. Thanks for Sharing.
    SEO Company Indore

    Keep Posting:)

    ReplyDelete