Welcome to My Blog. If you are a New Visitor Please Subscribe For Latest Updates!

Country Based Blogspot Domain Redirection

Rate this Post:
{[['']]}


If you are using blogspot and have not a top level domain name, and your opens in other countries, it will redirect to that country based domain i.e. yourblog.bolgspot.cn for china.
This thing becomes a headache if your are not on top level domain, because Search engines may find similar contents of your site on country based domain which is not allowed by search engine. (Duplicate contents on different domains)

If you have top level domain then no need to worry, but if your domain contains blogspot at the tail of your blog name then use this small Javascript to stop redirects and allow it to stay always on blogspot.com domain.


  • Login to Blogger
  • Goto Template
  • Edit HTML

Find </head> and paste the following code above/before </head> tag;

if ((window.location.href.toString().indexOf('.com/'))=='-1') {
window.location.href =
window.location.href.toString().replace('.blogspot.in/','.blogsp
ot.com/ncr/');
}


SHARE THIS POST   

  • Facebook
  • Twitter
  • Myspace
  • Google Buzz
  • Reddit
  • Stumnleupon
  • Delicious
  • Digg

0 comments:

Comments will be Moderated by Blog Administrator.
Please do not Spam Here.....