]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Remove unnecessary .* from regex, as noted in
authorRich Bowen <rbowen@apache.org>
Fri, 8 Apr 2011 14:15:17 +0000 (14:15 +0000)
committerRich Bowen <rbowen@apache.org>
Fri, 8 Apr 2011 14:15:17 +0000 (14:15 +0000)
http://stackoverflow.com/questions/5587148/regex-patterns-in-apache-rewritecond-and-friends-full-or-partial-match

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

docs/manual/rewrite/remapping.xml

index adbfdf64d18d5a2931d13fe9d3b6615111315f24..2fe37f5b9df00f818f40d0b9a4f9a8ef471c35a1 100644 (file)
@@ -488,8 +488,8 @@ com       http://www.example.com/<br />
 RewriteCond %{HTTP_USER_AGENT}  ^<strong>Mozilla/3</strong>.*<br />
 RewriteRule ^foo\.html$         foo.<strong>NS</strong>.html          [<strong>L</strong>]<br />
 <br />
-RewriteCond %{HTTP_USER_AGENT}  ^<strong>Lynx/</strong>.*         [OR]<br />
-RewriteCond %{HTTP_USER_AGENT}  ^<strong>Mozilla/[12]</strong>.*<br />
+RewriteCond %{HTTP_USER_AGENT}  ^<strong>Lynx/</strong>         [OR]<br />
+RewriteCond %{HTTP_USER_AGENT}  ^<strong>Mozilla/[12]</strong><br />
 RewriteRule ^foo\.html$         foo.<strong>20</strong>.html          [<strong>L</strong>]<br />
 <br />
 RewriteRule ^foo\.html$         foo.<strong>32</strong>.html          [<strong>L</strong>]