The directives contained in this module allow for manipulation
and control of URLs as requests arrive at the server. The
The
The
A request for http://myserver/image/foo.gif would cause the server to return the file /ftp/pub/image/foo.gif.
Note that if you include a trailing / on the
url-path then the server will require a trailing / in
order to expand the alias. That is, if you use Alias
/icons/ /usr/local/apache/icons/
then the url
/icons
will not be aliased.
Note that you may need to specify additional
This directive is equivalent to /icons
directory, one might
use:
The Redirect directive maps an old URL into a new one. The new URL is returned to the client which attempts to fetch it again with the new address. URL-path a (%-decoded) path; any requests for documents beginning with this path will be returned a redirect error to a new (%-encoded) URL beginning with URL.
If the client requests http://myserver/service/foo.txt, it will be told to access http://foo2.bar.com/service/foo.txt instead.
Redirect directives take precedence over
Alias and ScriptAlias directives, irrespective of their ordering in
the configuration file. Also, URL-path must be an absolute
path, not a relative path, even when used with .htaccess files or
inside of
If no status argument is given, the redirect will be "temporary" (HTTP status 302). This indicates to the client that the resource has moved temporarily. The status argument can be used to return other HTTP status codes:
Other status codes can be returned by giving the numeric
status code as the value of status. If the status is
between 300 and 399, the URL argument must be present,
otherwise it must be omitted. Note that the status must be
known to the Apache code (see the function
send_error_response
in http_protocol.c).
This directive is equivalent to
This directive makes the client know that the Redirect is
only temporary (status 302). Exactly equivalent to
Redirect temp
.
This directive makes the client know that the Redirect is
permanent (status 301). Exactly equivalent to Redirect
permanent
.
The
A request for http://myserver/cgi-bin/foo
would cause the
server to run the script /web/cgi-bin/foo
.
This directive is equivalent to /cgi-bin
, one
might use: