Fri. Apr 26th, 2024

How To Prevent / Stop Blogger Blog From Auto Redirecting To Country Specific Domain tLDs

By KWS Adams Feb 19, 2016
How To Prevent / Stop Blogger Blog From Auto Redirecting To Country Specific Domain tLDs

Auto redirecting to Country Specific Domain tLDs is a feature which Blogger introduced so years back. And with this feature which is auto activated on all Blogger aka Blogspot blogs, different readers will view the same blog with a different top level domain name depending on the country where one is accessing the site from. And in this post, I am sharing with you on how you can get rid of this auto redirection, and how to prevent and stop your Blog from doing so.

And in order to get started when it comes to preventing or stopping blogger blogs from automatically redirecting to Country Specific Domain tLDs, you need to be the owner of the Blog, and or one with the admin access rights. And after, you should follow the following below procedures.

1. Log into your Blogger Blog and onto the Dashboard of the blog you want to stop this auto redirecting feature.
2. Scroll down and click on Template.
3. Hit on edit HTML and wait for the html code to load.
4. Using keys CTRL + F, press the combination and enter this word below

[code]<head>[/code]

Now paste the script below.

[code]<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>[/code]

Now save your template file, and reload your Blog in visitor view or mode. You will instantly see everything in action.

By KWS Adams

My name is KWS Adams . (Call me Kateregga). I am an IT addict who loves playing around with computers and internet. Computers help me try out different things while turning them into reality, while the internet powers me stay live online. Besides computers, I am a project planning and management professional with an Award obtained from MUK, one of the oldest and best Universities in Africa. Find me on Twitter, Facebook and Whatsapp. Find more on how to contact me using the contact me page.

Related Post

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.