How to redirect *.blogspot.in to *.blogspot.com domain


1. Go to Blogger -> Template -> Edit HTML.
2. Now find </head> tag and then paste the below code above it.

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

That's all it takes

www.nthacks.com © Nischal

Reactions:

0 comments: