Last Updated:
How to Stop Country Specific URL redirection in Blogger

How to Stop Country Specific URL redirection in Blogger

Another Question asked by me today about country URL redirection in Blogger (blogspot) blogs. There is a big list behind, where  we have already shared Social Media Gadgets and tips and tricks for blogger. In this tutorial we will guide you a simple trick to prevent auto country URL redirection i.e blogspot.co.in,  blogspot.co.uk. blogspot.ru etc to its main URL that is blogname.blogspot.com. This URL redirection happened when you receive any visitors from India, UK, France etc. your blog auto redirect main URL of your to the country code Top level domain (ccTLD) as defined below.

Create Your Own Free Blog on Blogger : Blogger Basics (Tutorial) How to Create Blog on Blogspot

What is blogger country specific URL redirection?

The blogger country specific URL redirection is actually such type of redirection that is concern with geo-location of the visitor. For example, it’s a blogspot.com but if a visitor come from India searches then there would be shown blogspot.com.in instead of blogspot.com and same will happen with other country visitors. The ccTLD stands for country code top-level domain and this domain is kept for respective countries like: .fr , .co.in co.ae, co.uk etc.

Read :- Add Auto Image ALT Tag Generator for Blogspot Blogger

How to stop redirecting the URLs?

You can also see the .com version of URL using /ncr. For example normal URL without /ncr will be shown as: http://analytics.blogspot.com and the URL with /ncr will be shown as: http://analytics.blogspot.com/ncr. Now the question arise is it legal to stop redirection? and of course the answer is positive. This is declared by Google that there is nothing wrong in stop it and it allows to view the .com part of any blogspot using url/ncr.

Check How to SEO Blogger Blog :- Basic Killer SEO tips for Blogspot (Blogger.com)

How to Stop Country Specific URL redirection in Blogger?

It is very easy to disable and stop country URL redirection. You have to add following codes as per instructions guided you in following lines.

Go To Blogger Dashboard > Template >

Edit HTML and search for closing head tag i.e. </head>

Paste the following given code above / before the closing head tag </head>.

<script type="text/javascript">// <![CDATA[ var blog = document.location.hostname; var slug = document.location.pathname; var <span class="hiddenSpellError" pre="var ">ctld</span> = 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>

Save you template and you have done.

Also Check : - CSS Scroll Bar for Blogger

Bottom Lines

I wish that you have read my article carefully and gained important information given above. If there is something that is out of your sense or difficult to understand so you can ask me whatever making you frustrated.

Comments