Commit 77a1c7e9 authored by Eric Covener's avatar Eric Covener
Browse files

doc for DirectoryIndexRedirect


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1147328 13f79535-47bb-0310-9956-ffa450edef68
parent b9a47143
Loading
Loading
Loading
Loading
+32 −0
Original line number Diff line number Diff line
@@ -103,6 +103,38 @@ a directory</description>
</usage>
</directivesynopsis>

<directivesynopsis>
<name>DirectoryIndexRedirect</name>
<description>Configures an external redirect for directory indexes.
</description>
<syntax>DirectoryIndexRedirect on | off | permanent | temp | seeother | 
<var>3xx-code</var>
</syntax>
<default>DirectoryIndexRedirect off</default>
<contextlist><context>server config</context><context>virtual host</context>
<context>directory</context><context>.htaccess</context></contextlist>
<override>Indexes</override>
<compatability>Available in version 2.3.14 and later</compatability>

<usage>
    <p>By default, the <directive>DirectoryIndex</directive> is selected
    and returned transparently to the client.  <directive
    >DirectoryIndexRedirect</directive> causes an external redirect
    to instead be issued.</p>

    <example><title>Example</title>
      DirectoryIndexRedirect on
    </example>

    <p>A request for <code>http://example.com/docs/</code> would
    return a temporary redirect to <code
    >http://example.com/docs/index.html</code> 
    if it exists.</p>

</usage>
</directivesynopsis>


<directivesynopsis>
<name>DirectorySlash</name>
<description>Toggle trailing slash redirects on or off</description>