| Author: Kumaraditya Sarkar 19 Sep 2012 Member Level: Gold Points : 5 (Rs 5) Voting Score: 0 |
What coding are you using? I do not know what Amit Ji provided in labnol, but you can try this one. Find this line in your blog template code:
<b:include data='blog' name='all-head-content'/>
Just below that, place this little JavaScript code:
<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>
I think it should work fine and solve your problems.
|