httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rbo...@apache.org
Subject svn commit: r123579 - /httpd/httpd/trunk/docs/manual/misc/rewriteguide.xml
Date Tue, 28 Dec 2004 22:28:54 GMT
Author: rbowen
Date: Tue Dec 28 14:28:53 2004
New Revision: 123579

URL: http://svn.apache.org/viewcvs?view=rev&rev=123579
Log:
As per bug 22061, this paragraph predates RedirectMatch, and is thus
soemwhat inaccurate.

Modified:
   httpd/httpd/trunk/docs/manual/misc/rewriteguide.xml

Modified: httpd/httpd/trunk/docs/manual/misc/rewriteguide.xml
Url: http://svn.apache.org/viewcvs/httpd/httpd/trunk/docs/manual/misc/rewriteguide.xml?view=diff&rev=123579&p1=httpd/httpd/trunk/docs/manual/misc/rewriteguide.xml&r1=123578&p2=httpd/httpd/trunk/docs/manual/misc/rewriteguide.xml&r2=123579
==============================================================================
--- httpd/httpd/trunk/docs/manual/misc/rewriteguide.xml	(original)
+++ httpd/httpd/trunk/docs/manual/misc/rewriteguide.xml	Tue Dec 28 14:28:53 2004
@@ -172,20 +172,21 @@
         <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>
 

Mime
View raw message