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. Hey, very nice site. I came across this on Google, and I am stoked that I did. I will definitely be coming back here more often. Wish I could add to the conversation and bring a bit more to the table, but am just taking in as much info as I can at the moment. Thanks for sharing.

    Logical Softtech

    SEO company india

    ReplyDelete