From: Rich Bowen Date: Fri, 8 Apr 2011 14:16:04 +0000 (+0000) Subject: Remove unnecessary .* as mentioned in X-Git-Tag: 2.2.18~55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0317e1244c5f1cea4e60bda5b4f6e6d7b0eb10ec;p=thirdparty%2Fapache%2Fhttpd.git Remove unnecessary .* as mentioned 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/branches/2.2.x@1090257 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/rewrite/remapping.xml b/docs/manual/rewrite/remapping.xml index e52f906057c..458106587ab 100644 --- a/docs/manual/rewrite/remapping.xml +++ b/docs/manual/rewrite/remapping.xml @@ -465,8 +465,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]