How To Override Blogger Country Specific Blogspot URLs

Posted : Monday, July 16, 2012 | Post Author : Paul Crowe | 23 comments

ccTLD Logo

 

A few months back Blogger introduced a system were by Blogs using the blogspot sub domain would redirect to a country code Top Leval Domain (ccTLD) depending on which country a visitor viewed the blog from.

Confused ?

No need to be, basically all blogger blogs using the free blogspot domain have always been blogspot.com.So when you create your blog the URL would be for example myblog.blogspot.com and everyone who visited would be on myblog.blogspot.com.

Now for some reason Blogger have changed this.

When a visitor lands on your blog the domain will change depending on the country they are in.So I’m in Ireland; now every time I visit a blog the domain will not be .com but .ie (The ccTLD For Ireland).So our example blog when I visit here in Ireland will be myblog.blogspot.ie, and if someone from lets say India visits it will be myblog.blogspot.in.

The list goes on, people in the UK will see myblog.blogspot.co.uk and in France they see myblog.blogspot.fr.Remember if your in the USA you will have been totally oblivious to this change as you will always be seeing .com, but others are seeing your blog differently.

Personally I think it would be a great if they gave you the option to use a country code domain but to just automatically do it is strange to say the least.

Override Blogger Country Specific Domain

OK, if you don’t want your blog to be viewed differently in every country but rather use the .com URL at all times we have a fix.By adding a snippet of code to your template you can override the country specific domain.This code is the most straight forward and comes from Amit Agarwal @labnol.org.Follow these steps :

Remember Always Back Up Your Template Before You Make Changes – How To Back Up A Blogger Template

Step 1. In Your (New Design) Blogger Dashboard Click The Drop Down Menu For Your Blog > Choose Template > Then Edit Html > Now Proceed as shown in the video Below :

Step 2. Find the following piece of code in your blogs Html : (Click Ctrl and F for a search bar to help find the code – How To Find Code In Blogger Template Template)

  • <head>

Step 3. Copy and Paste the following code Directly Below / 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>

Now save your template and your done, your blog will always be viewed as dot com.

Drop Your Comments And Questions Below.

If You Enjoyed This Post Please Take 5 Seconds To Share It.

23 comments:

  1. Cristofer UrlaubJuly 16, 2012 at 9:14 AM

    What is the difference between leaving it and changing it? Why would I want it changed? Or why would I want it the way it is?

    ReplyDelete

  2. Yes, I was thinking about it. Why it should be changed?

    ReplyDelete

  3. yourcyberguide.comJuly 17, 2012 at 8:39 AM

    Thats a great post, Everything with india mentioned in it seems great to me 🙂

    Nice one, i always wondered why they change it to country specific url

    ReplyDelete

  4. Thank you so much!
    I wanted that change!

    ReplyDelete

  5. I am curious about it too. Perhaps it might be easier to keep track of your website for Google analytics or pagerank purposes.

    ReplyDelete

  6. Thank you so much…!

    ReplyDelete

  7. Thanks for the tips. I am not sure why I would need to use it but still its just nice to know the in and outs anyways.

    ReplyDelete

  8. yes please tell us is there any benefit to change it in to dot com if so than please share us
    http://governmentandpvtnaukri.blogspot.in/

    ReplyDelete

  9. This is very useful trick!
    THANKS Mr.Paul Crowe

    I use this in my blog.
    my blog get best alexa rank for blogspot.com domain
    ALl other domains are redirect to blogspot.com

    thanks Again!

    ReplyDelete

  10. Rabindra Sankar DasJuly 23, 2012 at 5:53 PM

    Great Post…i applied it…thanks

    ReplyDelete

  11. For those asking why you’d want to override it, it’s mainly for the comments. When it switches me to the Canada version of a blog (someblog.blogspot.ca), I’ll only be able to see Canadian comments and only Canadians will be able to see mine.

    ReplyDelete

  12. how about co.cc?

    ReplyDelete

  13. i applied this on 1 blog. it works.. no doubt
    but when i removed this code for some reasons there is no change in cctld.
    it is always .com without this code installed??? how is that so?? any idea?

    ReplyDelete

     

    Replies

     

  14. Exactly same is happening in my blog
    author plz tell us how to revert back to normal

    Delete

  15. I would think this is a cache issue.Clear the cache on your browser and it should be fine.

    Delete

  16.  

  17. I applied this code on my blog and It works perfectly thanx Panul

    ReplyDelete

  18. I’d rather prefer buying a customized domain to be simple in comes to url presentation and is easy to recall.

    ReplyDelete

  19. That was real cool 🙂

    ReplyDelete

  20. followed the steps it just goes into a stuck loop and won’t open
    http://governmentandpvtnaukri.blogspot.in
    please help me out

    ReplyDelete

  21. sir on my site this not working plz guide me sir…

    ReplyDelete

  22. nature hd wallpapersMarch 16, 2013 at 3:50 PM

    thanks for sharing admin

    ReplyDelete

  23. nice information thank you very much..

    ReplyDelete

  24. nice, It works perfectly. thanks

    Reply