This is the code i've been given for the redirection index file, will this have a negative effect on my websites coming up in the search engines? <html>
<head>
<title>Redirect Script with JavaScript</title>
<script language=javascript>
var whois=location+" "
if (whois.indexOf("yourdomain.com")!= -1)
{ window.location ="page1.html" }
if (whois.indexOf("www.yourdomain.com")!= -1)
{ window.location ="page1.html" }
if (whois.indexOf("yourotherdomain.com")!= -1)
{ window.location ="page2.html" }
if (whois.indexOf("www.yourotherdomain.com")!= -1)
{ window.location ="page2.html" }
if (whois.indexOf("subdomain1.yourdomain.com")!= -1)
{ window.location ="page3.html" }
if (whois.indexOf("subdomain2.yourdomain.com")!= -1)
{ window.location ="page4.html" }
</script>
</head>
<body>
</body>
</html>