]> granicus.if.org Git - apache/commitdiff
Don't capture matches if you're going to discard them - replaces ^(.+)
authorRich Bowen <rbowen@apache.org>
Mon, 14 Dec 2009 17:51:51 +0000 (17:51 +0000)
committerRich Bowen <rbowen@apache.org>
Mon, 14 Dec 2009 17:51:51 +0000 (17:51 +0000)
with just ^ for a rewrite rule that doesn't use $1.

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

docs/manual/rewrite/remapping.html.en
docs/manual/rewrite/remapping.xml

index 2d712c32f356a562b2fffc98ac735f93fccd3220..1d9861b9652ebea99d182d47b0149911809a917e 100644 (file)
@@ -340,7 +340,7 @@ RewriteRule  ^(.+)  %{DOCUMENT_ROOT}/<strong>dir2</strong>/$1  [L]
 
 #   else go on for other Alias or ScriptAlias directives,
 #   etc.
-RewriteRule   ^(.+)  -  [PT]
+RewriteRule   ^  -  [PT]
 </pre></div>
     </dd>
   </dl>
index 7e822f7cbf8ddece1028b5c33e33fc6da30336c0..a392c83b699bcead4762a8eb505c51d400f8192d 100644 (file)
@@ -342,7 +342,7 @@ RewriteRule  ^(.+)  %{DOCUMENT_ROOT}/<strong>dir2</strong>/$1  [L]
 
 #   else go on for other Alias or ScriptAlias directives,
 #   etc.
-RewriteRule   ^(.+)  -  [PT]
+RewriteRule   ^  -  [PT]
 </pre></example>
     </dd>
   </dl>