From: Rich Bowen Date: Fri, 8 Apr 2011 14:15:17 +0000 (+0000) Subject: Remove unnecessary .* from regex, as noted in X-Git-Tag: 2.3.12~73 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a71facd8269573a031776313471e29204cf850f;p=thirdparty%2Fapache%2Fhttpd.git Remove unnecessary .* from regex, as noted in 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 --- diff --git a/docs/manual/rewrite/remapping.xml b/docs/manual/rewrite/remapping.xml index adbfdf64d18..2fe37f5b9df 100644 --- a/docs/manual/rewrite/remapping.xml +++ b/docs/manual/rewrite/remapping.xml @@ -488,8 +488,8 @@ com http://www.example.com/
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/3.*
RewriteRule ^foo\.html$ foo.NS.html [L]

-RewriteCond %{HTTP_USER_AGENT} ^Lynx/.* [OR]
-RewriteCond %{HTTP_USER_AGENT} ^Mozilla/[12].*
+RewriteCond %{HTTP_USER_AGENT} ^Lynx/ [OR]
+RewriteCond %{HTTP_USER_AGENT} ^Mozilla/[12]
RewriteRule ^foo\.html$ foo.20.html [L]

RewriteRule ^foo\.html$ foo.32.html [L]