Powered by Blogger.

Redirect Blogspot.in To blogspot.com



Simply redirect blogspot.in To blogspot.com. ! As I Did..!

Earlier I was very curious about this, So you can also do this with your blog by simply adding this javascript code below mention..!


Step(1): You have to go to Blogger.com > Template > Edit HTML.

Step(2): Try to Find <head> tag.

Step(3):  Once you find <head> tag, Now Paste Below mention JavaScript code below <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>

or you can use this script..below

<script type='text/javascript'>
if ((window.location.href.toString().indexOf(&#39;.com/&#39;))==&#39;-1&#39;) {
window.location.href =
window.location.href.toString().replace(&#39;.blogspot.in/&#39;,&#39;.blogspot.com/ncr/&#39;);
}
</script>

Step(3): Now you have to save your template.

Now its All Done.. You blog will always appear as blogspot.com . And please don't forget to thank me..!
Share on Google Plus

About Lloyd Ostertag

    Blogger Comment
    Facebook Comment

Disclaimer

Disclaimer: All information provided on this Website is subject to change without notice. While efforts have been made to make this web site helpful and accurate, due to the open nature of this web site, and the potential for errors in the storage and transmission of digital information, "SeoSmoMarketing" does not warrant the accuracy of information obtained from this Web site or that it will not violate or infringe any right of third parties.