You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rb...@apache.org on 2004/12/28 23:28:03 UTC
svn commit: r123578 - /httpd/httpd/branches/2.0.x/docs/manual/misc/rewriteguide.xml
Author: rbowen
Date: Tue Dec 28 14:28:02 2004
New Revision: 123578
URL: http://svn.apache.org/viewcvs?view=rev&rev=123578
Log:
As per bug # 22061, this paragraph was written prior to the
RedirectMatch directive, and thus was somewhat inaccurate. That, and it
contained just a few too many "trivial"s for my liking.
Modified:
httpd/httpd/branches/2.0.x/docs/manual/misc/rewriteguide.xml
Modified: httpd/httpd/branches/2.0.x/docs/manual/misc/rewriteguide.xml
Url: http://svn.apache.org/viewcvs/httpd/httpd/branches/2.0.x/docs/manual/misc/rewriteguide.xml?view=diff&rev=123578&p1=httpd/httpd/branches/2.0.x/docs/manual/misc/rewriteguide.xml&r1=123577&p2=httpd/httpd/branches/2.0.x/docs/manual/misc/rewriteguide.xml&r2=123578
==============================================================================
--- httpd/httpd/branches/2.0.x/docs/manual/misc/rewriteguide.xml (original)
+++ httpd/httpd/branches/2.0.x/docs/manual/misc/rewriteguide.xml Tue Dec 28 14:28:02 2004
@@ -180,20 +180,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>