]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Remove unnecessary .* as mentioned in
authorRich Bowen <rbowen@apache.org>
Fri, 8 Apr 2011 14:16:04 +0000 (14:16 +0000)
committerRich Bowen <rbowen@apache.org>
Fri, 8 Apr 2011 14:16:04 +0000 (14:16 +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/branches/2.2.x@1090257 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/rewrite/remapping.xml

index e52f906057c53c92df22fbf14a503e857c810074..458106587ab0634c8dc272b354c7165cceee4d11 100644 (file)
@@ -465,8 +465,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>]