]> granicus.if.org Git - apache/commitdiff
[2.4][doc] mod_dir.xml r1553502 backport - Document 3xx DirectoryIndexRedirect codes
authorVincent Deffontaines <gryzor@apache.org>
Thu, 26 Dec 2013 16:01:05 +0000 (16:01 +0000)
committerVincent Deffontaines <gryzor@apache.org>
Thu, 26 Dec 2013 16:01:05 +0000 (16:01 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1553503 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_dir.html.en
docs/manual/mod/mod_dir.xml

index 8d6138eda326c4a4a520dbb92edbaec4ec272c4b..9b6421b9a26d6d2cfbf2b651eb31f3731aba523f 100644 (file)
@@ -165,6 +165,17 @@ a directory</td></tr>
     and returned transparently to the client.  <code class="directive">DirectoryIndexRedirect</code> causes an external redirect
     to instead be issued.</p>
 
+    The argument can be :
+    <ul>
+     <li><code>on</code> : issues a 302 redirection to the index resource.</li>
+     <li><code>off</code> : does not issue a redirection. This is the legacy behaviour of mod_dir.</li>
+     <li><code>permanent</code> : issues a 301 (permanent) redirection to the index resource.</li>
+     <li><code>temp</code> : this has the same effect as <code>on</code></li>
+     <li><code>seeother</code> : issues a 303 redirection (also known as "See Other") to the index resource.</li>
+     <li><var>3xx-code</var> : issues a redirection marked by the chosen 3xx code.</li>
+    </ul>
+
+
     <div class="example"><h3>Example</h3><pre class="prettyprint lang-config">
       DirectoryIndexRedirect on
       </pre>
index 4301f37088183a6049b707399caee2728166185f..646b67988fa4249e7db69c9071b8e690bcb5ba53 100644 (file)
@@ -149,6 +149,17 @@ a directory</description>
     >DirectoryIndexRedirect</directive> causes an external redirect
     to instead be issued.</p>
 
+    The argument can be :
+    <ul>
+     <li><code>on</code> : issues a 302 redirection to the index resource.</li>
+     <li><code>off</code> : does not issue a redirection. This is the legacy behaviour of mod_dir.</li>
+     <li><code>permanent</code> : issues a 301 (permanent) redirection to the index resource.</li>
+     <li><code>temp</code> : this has the same effect as <code>on</code></li>
+     <li><code>seeother</code> : issues a 303 redirection (also known as "See Other") to the index resource.</li>
+     <li><var>3xx-code</var> : issues a redirection marked by the chosen 3xx code.</li>
+    </ul>
+
+
     <example><title>Example</title>
     <highlight language="config">
       DirectoryIndexRedirect on