Friday, October 3, 2014

How to stop Blogger Blog from redirecting to country-specific URLs

Blogger and Country-Specific Domains

My traffic logs suggest that country-specific redirection in Blogger is now live in at least 15 countries. Here’s a complete list:

India [blogspot.in], Australia [blogspot.com.au], UK [blogspot.co.uk], Japan [blogspot.jp], New Zealand [blogspot.co.nz], Canada [blogspot.ca], Germany [blogspot.de], Italy [blogspot.it], France [blogspot.fr], Sweden [blogspot.se], Spain [blogspot.com.es], Portugal [blogspot.pt], Brazil [blogspot.com.br], Argentina [blogspot.com.ar], Mexico [blogspot.mx]

This country-specific URLs make a negative impression to the site linking and Ranking of a site.

How to Stop Blogger from Redirecting to Country-Specific Domains ?

1. First Go to Blogger Dashboard >> Template  >> Edit HTML

2. Now Search for the <head> tag using Ctrl+f.

3. Now copy the below code just after <head> tag.

<script type="text/javascript">
var blog = document.location.hostname.split(".");
if (blog[blog.length - 1] != "com") {
var ncr = "http://" + blog[0] + ".blogspot.com/ncr";
window.location.replace(ncr + document.location.pathname);
}
</script>


4. Now save the template and you are done.

1 comment:

  1. Thanks for your ideas. You can also find the details on Affity Solutions, at the search engine optimization australia. The main object of the Affity Solutions is to provide quality seo services.

    ReplyDelete