Karan Rawat Redirect Blogspot.in To blogspot.com | Karan Rawat SEO : King Of Blackhat Seo, Smo, Marketing
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.
Powered by Blogger.

Redirect Blogspot.in To blogspot.com



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

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 say thanks to me...!
Share on Google Plus

About Karan Rawat

Karan Rawat is a professional writer from a Hill Station Kulsari, He is a Wikipedia Editor, skilled in all types of content - from SEO to screenplays, creative to academic. Read More: http://about.me/karnrawat
    Blogger Comment
    Facebook Comment

Recent