Note the L doesn't necessarily mean no more rewriting.
authorJoshua Slive <slive@apache.org>
Wed, 1 Aug 2007 18:50:43 +0000 (18:50 +0000)
committerJoshua Slive <slive@apache.org>
Wed, 1 Aug 2007 18:50:43 +0000 (18:50 +0000)
PR: 40004

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

docs/manual/mod/mod_rewrite.html.en
docs/manual/mod/mod_rewrite.xml

index a11961d6a1936804ace58ea5beae44c240e5da62..079f095e7c595513fb07ea8d2def34a27edb1957 100644 (file)
@@ -1316,15 +1316,17 @@ cannot use <code>$N</code> in the substitution string!
         ``<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 />
index eca555dd33aad9fe95f23fe01872949785e38f00..dd7c5d8318ca050a483fd2d29919f88beecd24ea 100644 (file)
@@ -1333,15 +1333,17 @@ cannot use <code>$N</code> in the substitution string!
         ``<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 />