The redirect feature of our web server allows you to redirect access
to your home page to another URL. This can be used to redirect
the request to another server, or for the purposes of having a
cgi-bin program run to produce your home page. You can also redirect
to different pages based on the type of browser accessing your site.
If someone accesses your web pages with a URL that does not include a
filename, such as http://art.net/~yourdir, our server
normally searches your directory for a file named welcome.html or
index.html (and also welcome.htm and index.htm).
Example: if you want to use the var program to put a visitor counter or the time on your home page which is named index.htm, you could create a redirect file with the following commands in it:
default http://www.art.net/cgi-bin/var/youraccount/index.htm
Example: if you want to redirect users to a different home page depending on whether they are running Netscape, Netscape version 2.x, or anything else, you could create a redirect file with the following commands in it.
agent match "Mozilla/2.*" http://www.yourdomain.com/netscape2.html
agent match "Mozilla/*" http://www.yourdomain.com/netscape.html
default http://www.yourdomain.com/index.html