
Lets see how to add this to blogger.
Open Dashboard of your blog, go to Template and switch to template editor.
Since this code must be the first script that your browser must read to stop the redirection towards the country domains.(In simple Language)
SO we will place it just after the <head> tag.
So therefore search for the <head> section in the Template editor mode and place the given code just after 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>
Thats all! you have to do.
So that's a small and easy trick to disable country specific redirection in your blogspot blog. It will helps you in getting a better alexa traffic rank too.
THank you for reding this post. Like us on facebook @BuildNextWeb
All Regards,
BuildNextWeb and NASA&IMAGINE Team
ABOUT THE AUTHOR
Hello We are OddThemes, Our name came from the fact that we are UNIQUE. We specialize in designing premium looking fully customizable highly responsive blogger templates. We at OddThemes do carry a philosophy that: Nothing Is Impossible
0 comments:
Post a Comment