View Single Post
Old 20-08-2003, 01:46   #4
philip.j.fry
Inactive
 
philip.j.fry's Avatar
 
Join Date: Jul 2003
Posts: 1,395
philip.j.fry has reached the bronze age
philip.j.fry has reached the bronze agephilip.j.fry has reached the bronze agephilip.j.fry has reached the bronze agephilip.j.fry has reached the bronze age
or if they don't, use this javascript in the head portion of the first index page (for company.com). Just change the myHostName and correctLoc variables to what you need, make sure to keep the backslashes at the beginning and end of myHostName and put forward slashes in front of any periods.

Quote:

<SCRIPT language="Javascript">
function reDirect() {

var myHostName = /\.companyonline\.com/;
var correctLoc = "dir/page.html";
var url = window.location.href;
if (url.search(myHostName) != -1) {
document.URL = correctLoc;
}
}
</SCRIPT>
then in the body tags put

Quote:
<BODY LANGUAGE=javascript onload="reDirect()">
semi-tested
philip.j.fry is offline   Reply With Quote