I have a web site to which multiple domains point and I want to redirect to
a specific subdirectory for specific domain references. I found the
following script and am trying to use it but I cannot get it to work. I
added the alert statements to try to see what is happening but they both
retund a value of 0? Any ideas as to how I can accomplish this?
Wayne
==============================
<script language="JavaScript">
<!--
alert("Location.Hostname: " & location.hostname);
alert("urlloc: " & location.href);
if ( location.hostname == "AltDomain.org" ) {
window.location = "/AltDomainsubDirectory/";
} else if ( location.hostname == "domain_two.com" ) {
window.location = "/users/domain_two/";
} else {
// build current content
}
-->
</script>