![Netscape ENTERPRISE SERVER 6.1 Manual Download Page 61](http://html1.mh-extra.com/html/netscape/enterprise-server-6-1/enterprise-server-6-1_manual_1674653061.webp)
NameTrans Stage
Chapter
3
Predefined SAFs and the Request Handling Process
61
The third example shows the use of the
find-pathinfo-forward
parameter. The
URL
http://
server-name
/cgi-bin/
resource is translated to the physical pathname
/export/home/cgi-bin/
resource.
redirect
Applicable in
NameTrans
-class directives.
The
redirect
function lets you change URLs and send the updated URL to the
client. When a client accesses your server with an old path, the server treats the
request as a request for the new URL.
Parameters
NameTrans fn=pfx2dir from=/icons/happy dir=/users/nikki/images
NameTrans fn="pfx2dir" find-pathinfo-forward="" from="/cgi-bin"
dir="/export/home/cgi-bin" name="cgi"
from
specifies the prefix of the requested URI to match.
url
(may be optional) specifies a complete URL to return to the
client. If you use this parameter, don’t use
url-prefix
(and vice versa).
url-prefix
(may be optional) is the new URL prefix to return to the
client. The
from
prefix is simply replaced by this URL
prefix. If you use this parameter, don’t use
url
(and vice
versa).
escape
(optional) is a flag which tells the server to
util_uri_escape
the URL before sending it. It should be
yes
or
no
. The default is
yes
.
bucket
(optional) common to all
obj.conf
functions
regex
(optional) Specifies whether the expression is to be parsed as
a regular expression. Valid values are
yes
and
no
. The
default is
no
.
Summary of Contents for ENTERPRISE SERVER 6.1
Page 1: ...NSAPI Programmer s Guide Netscape Enterprise Server Version6 1 April 2002 Draft...
Page 290: ...Miscellaneous 290 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 318: ...cinfo 318 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 336: ...Buffered Streams 336 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 344: ...344 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 350: ...350 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 356: ...356 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...