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/');
}
4. Now the above code is for Australians so you just need to change the domain name which is bolded
according to your country just find all the URL Google it, now change it and paste the code.
Now try refreshing your blog and you will see that how your blog is automatically redirected to .com
domain name, have fun enjoy :)

No comments:
Post a Comment