You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by sl...@apache.org on 2007/08/01 20:50:46 UTC
svn commit: r561906 - in /httpd/httpd/trunk/docs/manual/mod:
mod_rewrite.html.en mod_rewrite.xml
Author: slive
Date: Wed Aug 1 11:50:43 2007
New Revision: 561906
URL: http://svn.apache.org/viewvc?view=rev&rev=561906
Log:
Note the L doesn't necessarily mean no more rewriting.
PR: 40004
Modified:
httpd/httpd/trunk/docs/manual/mod/mod_rewrite.html.en
httpd/httpd/trunk/docs/manual/mod/mod_rewrite.xml
Modified: httpd/httpd/trunk/docs/manual/mod/mod_rewrite.html.en
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_rewrite.html.en?view=diff&rev=561906&r1=561905&r2=561906
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_rewrite.html.en (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_rewrite.html.en Wed Aug 1 11:50:43 2007
@@ -1316,15 +1316,17 @@
``<code>cgi-script</code>''.</li>
<li>'<strong><code>last|L</code></strong>'
- (<strong>l</strong>ast rule)<br />
- Stop the rewriting process here and don't apply any more
- rewrite rules. This corresponds to the Perl
- <code>last</code> command or the <code>break</code> command
- in C. Use this flag to prevent the currently
- rewritten URL from being rewritten further by following
- rules. For example, use it to rewrite the root-path URL
- ('<code>/</code>') to a real one, <em>e.g.</em>,
- '<code>/e/www/</code>'.</li>
+ (<strong>l</strong>ast rule)<br /> Stop the rewriting process
+ here and don't apply any more rewrite rules. This corresponds
+ to the Perl <code>last</code> command or the
+ <code>break</code> command in C. Use this flag to prevent the
+ currently rewritten URL from being rewritten further by
+ following rules. Remember, however, that if the
+ <code class="directive">RewriteRule</code> generates an internal
+ redirect (which frequently occurs when rewriting in a
+ per-directory context), this will reinject the request and
+ will cause processing to be repeated starting from the first
+ <code class="directive">RewriteRule</code>.</li>
<li>'<strong><code>next|N</code></strong>'
(<strong>n</strong>ext round)<br />
Modified: httpd/httpd/trunk/docs/manual/mod/mod_rewrite.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_rewrite.xml?view=diff&rev=561906&r1=561905&r2=561906
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_rewrite.xml (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_rewrite.xml Wed Aug 1 11:50:43 2007
@@ -1333,15 +1333,17 @@
``<code>cgi-script</code>''.</li>
<li>'<strong><code>last|L</code></strong>'
- (<strong>l</strong>ast rule)<br />
- Stop the rewriting process here and don't apply any more
- rewrite rules. This corresponds to the Perl
- <code>last</code> command or the <code>break</code> command
- in C. Use this flag to prevent the currently
- rewritten URL from being rewritten further by following
- rules. For example, use it to rewrite the root-path URL
- ('<code>/</code>') to a real one, <em>e.g.</em>,
- '<code>/e/www/</code>'.</li>
+ (<strong>l</strong>ast rule)<br /> Stop the rewriting process
+ here and don't apply any more rewrite rules. This corresponds
+ to the Perl <code>last</code> command or the
+ <code>break</code> command in C. Use this flag to prevent the
+ currently rewritten URL from being rewritten further by
+ following rules. Remember, however, that if the
+ <directive>RewriteRule</directive> generates an internal
+ redirect (which frequently occurs when rewriting in a
+ per-directory context), this will reinject the request and
+ will cause processing to be repeated starting from the first
+ <directive>RewriteRule</directive>.</li>
<li>'<strong><code>next|N</code></strong>'
(<strong>n</strong>ext round)<br />