OpenIntro
04-08-2004, 09:23 PM
I am attempting to use a redirect so that if a user goes to http://www.zvse.com then they get redirected to http://www.illustro.com/zvse.htm with the code below....
<script language="JavaScript">
if (document.referrer == 'http://www.zvse.com'){
document.location.href='http://www.illustro.com/zvse.htm'
}
</script>
For some reason, it doesn't seem to like the ==. If I change it to != and some different page, it forwards just fine. Both www.illustro.com and www.zvse.com point to the same place but only if the person types in www.zvse.com do we want it forwarded. Any ideas?
<script language="JavaScript">
if (document.referrer == 'http://www.zvse.com'){
document.location.href='http://www.illustro.com/zvse.htm'
}
</script>
For some reason, it doesn't seem to like the ==. If I change it to != and some different page, it forwards just fine. Both www.illustro.com and www.zvse.com point to the same place but only if the person types in www.zvse.com do we want it forwarded. Any ideas?