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

Google is the handler of the famous Blogger site. With this, it automatically puts you to different country-specific domains which may not be that good to your blog stats. For example, you have your blog site naming “yourblog.blogspot.com” but if in case you have an incoming visitor coming from India, he may be redirected to “yourblog.blogspot.com”.

Actually, Google decided to have this feature to abide with the censorship of specific countries. However, this censorship may not be helpful to your blog stats as it divides the viewership to different links even if it is just your blog site alone.

Prevent Blogger Country URL Redirection

Recommended:

1) How To Add A Google Sitemap To Your Blogger Blog

2) How To Auto Submit Your Blogger Blog Post To Google Plus

Editing HTML to Stop Blogger Blog Country Specific Redirections

This is very easy.

1. Go to your Blogger dashboard and click on the “Template”.

2. From there, click “Edit HTML then hit “Proceed”. After that, copy the following code and paste it immediately after the <head> tag.

<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>

3. After pasting the HTML code, click “Save Template” and you’re done.
(Visited 95 times, 27 visits today)

Speak Your Mind

*