]> granicus.if.org Git - apache/commitdiff
As per bug 22061, this paragraph predates RedirectMatch, and is thus
authorRich Bowen <rbowen@apache.org>
Tue, 28 Dec 2004 22:28:53 +0000 (22:28 +0000)
committerRich Bowen <rbowen@apache.org>
Tue, 28 Dec 2004 22:28:53 +0000 (22:28 +0000)
soemwhat inaccurate.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@123579 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/misc/rewriteguide.xml

index cad3b6d1ad9d7b7655172b840c845d47f068fd5e..0065aa1354d97cd5d8d2c4a9aa0b796f2565e894 100644 (file)
@@ -172,20 +172,21 @@ RewriteRule ^/(.*)         http://fully.qualified.domain.name/$1 [L,R]
         <dt>Solution:</dt>
 
         <dd>
-          <p>We just redirect the URL <code>/</code> to
-          <code>/e/www/</code>. While is seems trivial it is
-          actually trivial with <module>mod_rewrite</module>, only.
-          Because the typical old mechanisms of URL <em>Aliases</em>
-          (as provides by <module>mod_alias</module> and friends)
-          only used <em>prefix</em> matching. With this you cannot
-          do such a redirection because the <directive module="core"
-          >DocumentRoot</directive> is a prefix of all URLs. With
-          <module>mod_rewrite</module> it is really trivial:</p>
-
+          <p>We redirect the URL <code>/</code> to
+          <code>/e/www/</code>:
+          </p>
+         
 <example><pre>
 RewriteEngine on
 RewriteRule   <strong>^/$</strong>  /e/www/  [<strong>R</strong>]
 </pre></example>
+
+    <p>Note that this can also be handled using the <directive
+    module="mod_alias">RedirectMatch</directive> directive:</p>
+
+    <example>
+    RedirectMatch ^/$ http://example.com/e/www/
+    </example>
         </dd>
       </dl>