
How to Redirect a URL or Directory.
Here is some of the tricks of the trade!
If I wanted to redirect http://thehelpfactor.com/hello to http://thehelpfactor.com/done.htm. I would do the following:
Create the directory named "hello".
Create a index.htm file in the and put the code below in it.
<html>
<head>
<script language="JavaScript">
bName = navigator.appName;
if (bName == "Netscape")
window.location="http://thehelpfactor.com/done.htm";
else
window.location="http://thehelpfactor.com/done.htm"
</script>
<title>Redirect to the Done Page!</title>
</head>
<body bgcolor="#99CCFF">
<p align="center"> </p>
<p align="center"> </p>
<p align="center"><b><font size="4">If
you are seeing this your browser does not
support Java.</font></b></p>
<p> </p>
<p align="center"><b><font
size="4"><a href="http://thehelpfactor.com/done.htm">Please click
here for the done web page</a></font></b></p>
</body>
</html>
You can use the same code to redirect a file to a web page, a web page to a web page and a dir. to a dir. Just save the code as the html file you want to redirect and change the information above in yellow to the URL you want to redirect the user to.
Quick redirect
<HTML>
<HEAD>
<script>
location.href="http://www.gh1.com"
</script>
Place the above code in the header and it will redirect that page to the domain or page with in that domain.