how to convert blogspot.in into blospot.com

mark.lee Registered Users
Hi all,

i m using this code to redirect blogspot.in into blogspot.com

<script type="text/javascript">
var blog = document.location.hostname;
var slug = document.location.pathname;
var ctld = blog.substr(blog.lastIndexOf("."));
if (ctld != ".com") {
var ncr = "http://" + blog.substr(0, blog.indexOf("."));
ncr += ".blogspot.com/ncr" + slug;
window.location.replace(ncr);
}
</script>


But is this right?
Can google give some bad effects?

Answers

Sign In or Register to comment.