How To Disable Country Specific URL Redirect For Blogger?

Blogger Country Specific URLThis tutorial explains us to prevent the Blogspot.com from redirecting to country specific URLs. Stay with .blogspot.com as your main URL all the time by disabling country specific redirection.

People think that it was a bad choice by Google to initiating country specific URLs for their blogging platform. But, Google was under tremendous pressure by various countries to enable this option to track down the data locally. If Google receives request for removal from the local body due to that specific regions law violation, then the data/blog will be removed immediately.


What is Blogger country specific URL redirection?

Let your blog be example.blogspot.com , but when someone from India visits it the URL would show up on their browser as example.blogspot.in. If the visitor is from UK, the URL would be example.blogspot.co.uk.
This redirection based on the IP address from where the visitor has come is called Blogger's country specific URL redirection.

Specifically: ccTLD - country code top-level domain

The redirection on Blogger country specific URL is technically called as country code top-level domain(ccTLD). This top-level domain is reserved for respective countries.
Eg:
India - co.in
Russia - .ru
France - .fr
and so on.

How to stop redirecting the URLs?

You can always view the .com part of any blogspot using /ncr with the URL as shown below:
Normal URL without /ncr >>> http://analytics.blogspot.com/  (This will redirect to country specific URL)
With /ncr >> http://analytics.blogspot.com/ncr

Disabling Country Specific URL Redirection by Implementing /ncr via Script:

Step 1: Go to Blogger Dashboard > Click Blog > Click "Template" > Edit HTML

Step 2: Search
<head>

And paste the below code after <head>

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

Step 3: Save the template. You are done! :-)

Now, your blogspot.com domain will not redirect. We have installed this small and simple script into the template to stop the redirection successfully.

Is it LEGAL to Stop Redirection?

Yes, it is legal.
Some may think that this is going to violate the Blogger policy.
Nope.
You can check it here what Google has to say about country specific redirection.
They say "We allow anyone to view the .com version of the URL using /ncr"
Hope you enjoyed this tutorial and information in this tutorial. Hope to deliver more such articles in the future. Thanks for reading. Enjoy. Any doubts, please comment or contact me to let me know.

Post a Comment