Tuesday, 16 July 2013

prevent country specific redirection in blog

 If you want to prevent this country specific redirection then follow the steps given below.
Step 1 
Goto 'Design' from your blogger dashboard.
Step 2
Then select 'Edit HTML'.
Step 3
Find <Head> and paste the code given below right below it. 

<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>

No comments:

Post a Comment