NAME
wnredir - CGI program for redirecting to a new URL for wn HTTP server
SYNOPSIS
wnredir url [ /]
DESCRIPTION
wnredir is a perl(1) CGI program that is part of the wn(1) HTTP server package. It redirects requests for a file to another location. It looks for the name of a URL in the url argument. If it ends in an optional /, it concatenates the name of the file in the environment variable WN_KEY (see http:/doc/wn/appendixD.html). It prints the resulting URL to wnredir standard output.
wnredir is intended to be used with the Databse Module feature of wn(1) (see http:/doc/wn/module.html). This requires that the Cache-Module directive be set in the appropriate index file (see http:/doc/wn/appendixB.html).
For example, to redirect all requests to url you would include the following line in the index file for the directory being redirected:
Cache-Module=redir url
SEE ALSO
wn(1), wn_mkdigest(1), wn_uncache(1), wndex(1), wnindexmaker(1), wnpnuts(1), wnauth(3), wncat(3), wnhtmlify(3), wnsectsearch(3), wnseven_m(3), wn_md5passwd(8), wn_mkpasswd(8), wnconfig(8), wnd(8), wnsd(8), wnupdatewww(8), wnv2c(8)
http:/doc/wn/module.html
http:/doc/wn/appendixB.html
http:/doc/wn/appendixD.html
http:/doc/wn/manual.html
http://hopf.math.nwu.edu/
AUTHOR
wn is written by John Franks <[email protected]>. Modified by Jean Pierre LeJacq <[email protected]> as part of packaging for the Debian GNU/Linux distribution. Manual page also added by Jean Pierre LeJacq.