In this tutorial we will see how to stop blogspot being redirected to the country domain. We all know that when we open blogspot in specific country it get redirected to the their respectively country domain. For example if a myblog.blogspot.com is opened in India it will get redirected to myblog.blogspot.in . Finally after long time we have now a script to stop this redirection.This redirection is named "country-code Top Level Domain" (ccTLD). It known as "302 Redirect" also. So today I came across a great trick to disable this country specific redirection.
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.
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
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