Flipkart

Wednesday, 14 March 2012

Stop Blogger blogs redirecting to Country Specific Domains



Recently Google redirecting all blogger blogs to their respective Country code TLD’s. If you are visiting a blogin India, it will be redirecting .com to .in domain. If you are visiting a blog from Australia, it will be redirecting to .com.au extension. For example if you are from India this blog address  http://trendyreader.blogspot.com/  goes to  http://trendyreader.blogspot.in

Why Blogger Blogs Redirecting to Country Specific?

Google gets removal requests from some countries like India. They wanted to make censorship on Internet and hide some unwanted details. So Google initially make censorship on blogger blogs to hide particular unwanted contents. If a site having unwanted contents, they will be hidden in some countries. Other countries can see all contents of that site.

Google said there is no change in SEO of a blog and search engine rankings. The blogshaving custom domains are not affected by this method. This new change made bloggers unhappy, because they losing their blog’s Alexa rank. Another drawback is submitting the posts to aggregators they can’t accepting posts from new Url.

How to Stop Blogger blogs redirecting to Country Specific Urls?

We can stop this bloggers redirection functionality by using a JavaScript code. This JavaScript code simply redirects your blog Url to your original .com domain. So yourblog cant redirected to country specific domains.

<script type="text/javascript">
var str= window.location.href.toString();
if ((str.indexOf('.com/'))=='-1') {
var str1=str.substring(str.lastIndexOf(".blogspot."));
if (str1.indexOf('/')=='-1') {
var str2=str1;
}
else {
var str2=str1.substring(0,str1.indexOf('/')+1);
}
window.location.href =window.location.href.toString().replace(str2,'.blogspot.com/ncr/');
}
</script>

*Copy the above code and search this line on your blogger template.


<b:include data='blog' name='all-head-content'/>

* Paste the java script code below that line and save your template. That’s all. Now your readers can see your blog from anywhere in the world will goes to your original .com domain only.

No comments:

Post a Comment

Popular Posts