By using java script code we can redirect blog spot .in to .com using or .us to .com.
first search for below line, and then copy above code and paste above of below line.
<b:include data='blog' name='all-head-content'/>
save the html template. u can able to redirect all end users to userwebsite.blogspot.com.
//
http://rangatechnology.blogspot.in/
<script type="text/javascript">
var str= window.location.href.toString();
if ((str.indexOf('.com/'))=='-1') {
var str1=str.substring(str.lastIndexOf(".blogspot."));
if (str1.indexOf('/')=='-1') {
var str2=str1;
}
else {
var str2=str1.substring(0,str1.indexOf('/')+1);
}
window.location.href =window.location.href.toString().replace(str2,'.blogspot.com/ncr/');
}
</script>
*Copy the above code and search this line on your blogger template.
<script type="text/javascript">
var str= window.location.href.toString();
if ((str.indexOf('.com/'))=='-1') {
var str1=str.substring(str.lastIndexOf(".blogspot."));
if (str1.indexOf('/')=='-1') {
var str2=str1;
}
else {
var str2=str1.substring(0,str1.indexOf('/')+1);
}
window.location.href =window.location.href.toString().replace(str2,'.blogspot.com/ncr/');
}
</script>
first search for below line, and then copy above code and paste above of below line.
<b:include data='blog' name='all-head-content'/>
save the html template. u can able to redirect all end users to userwebsite.blogspot.com.
No comments:
Post a Comment