From 5c93e241e43efe9ce294024d993c62e5ba8ba492 Mon Sep 17 00:00:00 2001 From: pcs Date: Wed, 27 Nov 1996 09:30:51 +0000 Subject: Document the "Redirect [ temp | permanent | seeother | gone ] ..." format of Redirect directive. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@77073 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/mod/mod_alias.html | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) (limited to 'docs/manual/mod/mod_alias.html') diff --git a/docs/manual/mod/mod_alias.html b/docs/manual/mod/mod_alias.html index 118ced8937..7bd28e1648 100644 --- a/docs/manual/mod/mod_alias.html +++ b/docs/manual/mod/mod_alias.html @@ -45,12 +45,12 @@ See also ScriptAlias.


Redirect

-Syntax: Redirect url-path url
+Syntax: Redirect [ status ] url-path url
Context: server config, virtual host, directory, .htaccess
Status: Base
Module: mod_alias
Compatibility: The directory and .htaccess context's -are only available in versions 1.1 and later

+are only available in versions 1.1 and later. The status argument is only available in Apache 1.2 or later.

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. @@ -64,6 +64,28 @@ access http://foo2.bar.com/service/foo.txt instead.

Note: Redirect directives take precedence over Alias and ScriptAlias directives, irrespective of their ordering in the configuration file.

+If no status argument is given, the redirect will be +"temporary" (HTTP status 302). This indicates to the client that the +resources is has moved temporarily. The status +argument can be used to return other HTTP status codes: +

+
permanent
Returns a permanent redirect status (301) indicating that +the resource has moved permanently. +
temp
Returns a temporary redirect status (302). This is the +default. +
seeother
Returns a "See Other" status (303) indicating that +the resource has been replaced. +
gone
Returns a "Gone" status (410) indicating that the resource +has been permanently removed. When this status is used the url +argument should be omitted. +
+ +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). +

RedirectTemp

Syntax: RedirectTemp url-path url
@@ -73,7 +95,7 @@ directives, irrespective of their ordering in the configuration file.

Compatibility: This directive is only available in 1.2

This directive makes the client know that the Redirect is only -temporary. (Status 302).

+temporary. (Status 302). Exactly equivalent to Redirect temporary

RedirectPermanent

@@ -84,7 +106,7 @@ temporary. (Status 302).

Compatibility: This directive is only available in 1.2

This directive makes the client know that the Redirect is permanent. -(Status 301).

+(Status 301). Exactly equivalent to Redirect perm


ScriptAlias

-- cgit v1.2.1