Skip to main content

Disable 302 Redirection to Country Specific Domains

As many of you may know, Google is continuously releasing updates in order to improve its services, particularly in the area of generating better search results. In Jan 31, 2012 Google started to implement Country-Specific url redirects to Blogger.

What is that mean?

In simple terms, if you are viewing a blog with an address such as example.blogspot.com from France (FR), then you'll be redirected to a .fr domain: example.blogspot.fr. Similarly, if you are viewing from United Kingdom it will be redirected to example.blogspot.co.uk.

This might sound like no big deal—who cares what a blog URL ends with, right? Wrong. Google’s motives are something any serious blogger should care about in this case; this is happening so that Google can easily block any content which is not appropriate for a specify country according to the law of that country, and can easily serve that same content in another country without any issues. This is an act of “selective censorship” being perpetrated against writers without their consent. If you have ever tried to watch a video that is freely available in, for example, the United States, from just about anywhere else, you know the frustration this kind of behaviour can cause—the video is often blocked to you for no real reason beyond outdated international copyright laws, laws drafted long before the internet existed that have simply refused to adapt in a timely manner.

More seriously, many countries with tyrannical governments employ censorship to help control the populace and restrict their access to information that could seriously aid them in their fight against oppression. Who wants to allow their blog to be censored in a nation simply because its government has arbitrarily decided to isolate and brainwash its populace? The beauty of the internet is that it is based on the freedom of unbiased information, and this is a mission that we, as writers, are bound by duty to uphold.

This country based URL redirection also has negative consequences for your blog itself.
This forced redirection causes your Alexa Traffic Rank will to be separated to different domains. This redirection is  a "302 Redirect" which is a temporary change, and not a 301 redirect, which is a permanent change of address. So, even if you are not bothered about content restriction issues, for better search engine optimization (SEO), you need to fix this issue or risk a loss of exposure.

Thankfully, there is a way to do so; you do not have to let your blog fall victim to censorship and the enforcement of antiquated laws. To fix this problem, you must also employ the following piece of code, adding it to your template; it will ensure that your blog always serves the .com address to your visitors.

Disable Blogger Redirection to Country Specific Domains:

Go to Design -> Edit HTML and search for "</head>".
Now copy and paste the following code BEFORE the </head> tag.
<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>
Save your template and you are ready :)

Comments

  1. Thanks you for Post. it was very useful for me.keep sharing such ideas in the future as well. Thanks for giving me the useful information. I think I need it!
    outsourcing pros and cons

    ReplyDelete

Post a Comment

Popular posts from this blog

Google Panda 4.0 Update is Here!

Hey everybody, big news for the SEO world! Google is rolling out Panda 4.0 update starting yesterday (20.05.2014).

This was announced by the Google's head of spam team Matt Cutts:
Google is rolling out our Panda 4.0 update starting today.
— Matt Cutts (@mattcutts) May 20, 2014 What should a site owner do if they think they might be affected by Panda?
Published on Sep 11, 2013
Recently Google has integrated the Panda update in to its normal indexing process. Now, how will webmaster come to know whether her site is hit by Panda? And, if her site is already hit, how she will know that she has recovered from Panda? Nandita B, India How are your website rankings today? Any improvements in ranking? Please share your experience with this update in the comments below.

Customize comment box size easily and efficiently in Blogger

Blogger is a great blog site for bloggers that enables various valuable features and customizations. One of the most important features of a blog is the comment feature that enables you to get direct feedback from your readers.

Blogger empowers you to add this essential comment feature to your blog site to receive and exhibit the valuable feedback from your visitors and readers. When you select the comment feature option that is the standard option, the default comment box will be displayed right below your posts. The size of the comment box, height and width, is also the default size set by Blogger. This can be disadvantageous to your blog site, especially to its appearance, as the default box maybe narrower than your post. Having said that, now you can easily change the comment box size on your blog site.

You do not have to be an expert at coding or a pro with managing your backend.
You just have to understand and follow the steps mentioned below

My Popular Blogs List: Commentluv Enabled Blogs

Today I have seen that many bloggers are searching with Google for Commentluv Enabled Popular Blogs List. So I decided to provide a list of the best blog sites and most popular blogs with Commentluv Enabled.
My Popular Blogs List:http://kikolani.comhttp://basicblogtips.comhttp://rich-blogger.comhttp://comluv.comhttp://savedelete.comhttp://w3blog.dkhttp://freebloghelp.comhttp://blogengage.comhttp://techehow.comhttp://techteen.nethttp://weblogbetter.comhttp://windowstalk.orghttp://blondish.net/http://www.birdsontheblog.co.ukhttp://www.intenseblog.com Commentluv Enabled Blogs:http://seobythesea.comhttp://famousbloggers.nethttp://hdwallpaperspack.comhttp://wptechie.orghttp://www.smartbloggerz.comhttp://www.blogpreneurs.com/http://www.webuildyourblog.com/http://wpbloghost.com/blog/http://oddblogger.com/http://www.awesomebloggers.com/http://blog.teasenz.comhttp://myblog2day.com/ In the past year, there has been a lot of controversy over whether or not the benefits of Comment Luv outweighs …