Page is a not externally linkable
- Marketing and Biz Dev
-- Cloaking
---- Multiple domain redirection


Carpaccio - 8:56 pm on Jan 25, 2008 (gmt 0)


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>


Thread source:: http://www.webmasterworld.com/cloaking/3558160.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com