Site icon rtCamp

How to Prevent Blogger Blog from Redirecting to Country-Specific URLs

As the Google have started redirecting the blogger blogs to country specific domain, many of blogger users are facing problems due to negative affect on Google juice (Bookmarked links, external links of your blogs) and social stats (like tweet countss, facebook shares and Google +1’s).

The country specific re-direction allows google to have more control on blogs management in different countries.

Available Solutions:

For example opening http://abc.blogspot.com in India will open http://abc.blogspot.in,

however, if you open http://abc.blogspot.com/ncr in any country it will simply open the same url i.e. http://abc.blogspot.com

How to add ‘ncr’ slug to your blog url:

I recently found a code snippet to add ncr slug to your blogger url.

Follow the below steps:

<script type="text/javascript">
var blog = document.location.hostname;
var slug = document.location.pathname;
var ctld = blog.substr(blog.lastIndexOf("."));
if (ctld != ".com") {
var ncr = "http://" + blog.substr(0, blog.indexOf("."));
ncr += ".blogspot.com/ncr" + slug;
window.location.replace(ncr);
}
</script>

*Code Snippet Credit: Labnol

Above code snippet adds ‘ncr’ slug to blog url and prevent redirection to country specific domain.

Exit mobile version