Tech Stumps

  • Home
  • Android
  • iOS
  • Smartphones
  • Tablets
  • Tricks

How to Stop Blogger Blogs Redirection to Country Specific Domains

in: Blogger Blogger Tips
Google redirecting all blogger blogs to their respective Country code TLD’s. If you are visiting a blog in 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 seeing this blog address http://xyz.blogspot.com goes to http://xyz.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 blogs having 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 your blog 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.

10 comments:

  1. perumal karurMarch 15, 2012 at 11:37 AM

    good post thanks...........

    ReplyDelete
    Replies
      Reply
  2. TrapMobileMarch 16, 2012 at 2:00 AM

    LOL! Great Working ;)

    ReplyDelete
    Replies
      Reply
  3. SoniaMarch 18, 2012 at 9:38 AM

    Its working man. Thanx a lot.

    http://hottest-tips-and-tricks.blogspot.com/

    ReplyDelete
    Replies
      Reply
  4. Freaked inMarch 20, 2012 at 11:29 AM

    Nice man .you rockz

    ReplyDelete
    Replies
      Reply
  5. Freaked inMarch 20, 2012 at 12:56 PM

    working man
    check this
    http://tune2tech101.blogspot.in/

    ReplyDelete
    Replies
      Reply
  6. Gustavo Di SalvoMarch 21, 2012 at 5:44 AM

    Thank you!
    I'm mad at Google, I can't understand such idiotic changes. Facebook comments are related to the URLs and I lost all of them if I keep the local domain.

    ReplyDelete
    Replies
      Reply
  7. AnonymousMarch 23, 2012 at 4:49 PM

    Is it against the Google/blogger's terms? can they delete my blog?

    ReplyDelete
    Replies
      Reply
  8. AnonymousJune 23, 2012 at 7:36 PM

    Thank you for good post...DO u written the code by yourself or u taken this code from any other code developer.

    ReplyDelete
    Replies
      Reply
  9. Seo Company IndiaJanuary 2, 2013 at 5:06 PM

    It's working, great :)

    ReplyDelete
    Replies
      Reply
  10. jinjeganJune 26, 2013 at 3:40 AM

    thank you man.. tophealth-tip.blogspot.com

    ReplyDelete
    Replies
      Reply
Add comment
Load more...

Newer Post Older Post Home
Get Updates in Email. Join with 500+ Readers
  • RSS Feed
  • Twitter
  • Google Plus

Popular Posts

  • Contact Us
  • Privacy Policy
  • Sitemap

"© Copyright 2011-16" TechStumps.com · All Rights Reserved ·