Steps for Redirecting your .in Blogger Domain to .com :
1. Go to Blogger.com and Login to your Account and navigate to Template > Edit HTML.2. Now find </head> tag and than paste the below code right above it.
if ((window.location.href.toString().indexOf('.com/'))=='-1') {
window.location.href =
window.location.href.toString().replace('.blogspot.in/','.blogspot.com/ncr/');
}
3. Now Save your Template and that’s it done. Now the above code is only for the Indian Blogs means those are redirecting to .in domain if you are in another country and you want your Blogs to redirect from your country to .com just change the code lines above.
if ((window.location.href.toString().indexOf('.com/'))=='-1') { window.location.href = window.location.href.toString().replace('.blogspot.com.au/','.blogspot.com/ncr/'); }
0 comments:
Post a Comment