Disable Blogger Redirection to Local Domains ?

Hello friends today I am here with you to discuss about “Disable Blogger Redirection to Local Domains ?”. If you are a blogger, running your blog on BlogSpot.com then you might have noticed that sometimes your site is redirected to country specific URL. But it doesn't happen for all the countries. Maybe 17 - 20 countries have their own blogger domain. For rest of the countries, Google will implement the local domains for blogger blogs very soon!. See our previous post on Counting Characters online.

Disable Blogger's RedirectionLet me clear it for you…
All of us know that blog running on blogger usually have sub-domainshttp://yoursitename.blogspot.com, but if you are visitors from other countries have different domains mentioned in their browers
For Example :
  • If you are Indian, then you will see http://yoursitename.blogspot.in instead of http://yoursitename.blogspot.com.
  • If you are a Canadian, then you will see http://yoursitename.blogspot.ca instead of http://yoursitename.blogspot.com.
  • If you’re an Italian , then you will see http://yoursitename.blogspot.com instead of http://yoursitename.blogspot.com.
There are so many domains that are redirected for specific country URL’s. Hmmm… sounds great na…. different domains for different countries but be so happy because it has some disadvantages.
  • Your social stats (+1, Likes, Tweets, fb shares, pins, digg etc.) may fall dramatically due to the variations in domain.
  • Your blogs search ranking might be affected.
  • If blogger is banned in a specific country with the help of local domain, your site can't be visited from there.
Though Google says, they are trying to minimize the negative consequences of hosting blogger. But why are you waiting for Google's effort ? You can force specific counties URL’s to redirect only to http://yoursitename.blogspot.com version of your site with a simple code.

Prevent Blogger's from Redirection

It is recommend that you need to keep a Backup your blogger template while editing HTML because while editing the code something and somewhere might go wrong in your code, hence you can restore it back without making any changes.
  • In Template Option, Click on Edit HTML.
  • Hit on the template box and using Ctrl + F find for this code.
  • After you find the above code, copy and paste the below code just below the above code.

<script type='text/javascript'>
var blog = document.location.hostname;
var slug = document.location.pathname;
var ctld = blog.substr(blog.lastIndexOf(&quot;.&quot;));
if (ctld != &quot;.com&quot;) {
var ncr = &quot;http://&quot; + blog.substr(0, blog.indexOf(&quot;.&quot;));
ncr += &quot;.blogspot.com/ncr&quot; + slug;

  • Look at the image below.
Prevent Redirection Code in Blogger Template
  • Save your template.

What about the Registered/ Custom Domain?

If you blogger blog has a custom domain like .com or .net you don't need implement this code because the redirection is not applicable for a site with custom domain.
I think now you might have understood the importance of using this code . . . .
Feel free to ask if you have any doubts on this topic.
Follow :
Like the post? Never miss another. Get all our posts directly to your e-mail. Subscribe to our newsteller today


Post a Comment

Your feedback is always appreciated. We will try to reply to your queries as soon as time allows.
1) Do not include links in comments as they will not be published after moderation !
2) Make sure that you "subscribe by mail" to get notified to reply to your comments.
3) Please do not Spam... Spam comments will be deleted immediately upon our review.

Blog Archive

Alexa Traffic Rank

Review http://www.mybloggingtechniques.com/ on alexa.com
Proudly powered by Blogger