]> granicus.if.org Git - apache/commitdiff
Removes the completely unecessary .* on several examples where it only
authorRich Bowen <rbowen@apache.org>
Tue, 21 Sep 2010 13:28:01 +0000 (13:28 +0000)
committerRich Bowen <rbowen@apache.org>
Tue, 21 Sep 2010 13:28:01 +0000 (13:28 +0000)
serves to slow down the match process.

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

docs/manual/mod/mod_rewrite.html.en
docs/manual/mod/mod_rewrite.xml

index 5f6aaae2c78613e0bbd81fac4baa3c5050815471..b54e45f03f63b63b408a050c8b360676652eab0d 100644 (file)
@@ -592,9 +592,9 @@ RewriteRule ^index\.html$  newsite.html
           instead of the implicit AND. Typical example:
 
 <div class="example"><pre>
-RewriteCond %{REMOTE_HOST}  ^host1.*  [OR]
-RewriteCond %{REMOTE_HOST}  ^host2.*  [OR]
-RewriteCond %{REMOTE_HOST}  ^host3.*
+RewriteCond %{REMOTE_HOST}  ^host1  [OR]
+RewriteCond %{REMOTE_HOST}  ^host2  [OR]
+RewriteCond %{REMOTE_HOST}  ^host3
 RewriteRule ...some special stuff for any of these hosts...
 </pre></div>
 
@@ -622,10 +622,10 @@ RewriteRule ...some special stuff for any of these hosts...
         use the following: </p>
 
 <div class="example"><pre>
-RewriteCond  %{HTTP_USER_AGENT}  ^Mozilla.*
+RewriteCond  %{HTTP_USER_AGENT}  ^Mozilla
 RewriteRule  ^/$                 /homepage.max.html  [L]
 
-RewriteCond  %{HTTP_USER_AGENT}  ^Lynx.*
+RewriteCond  %{HTTP_USER_AGENT}  ^Lynx
 RewriteRule  ^/$                 /homepage.min.html  [L]
 
 RewriteRule  ^/$                 /homepage.std.html  [L]
index 50d475e4b455c6e4275652a2ae28bb4191962357..69cc48264989e0ebe671e2c28eef15a94c11c684 100644 (file)
@@ -747,9 +747,9 @@ RewriteRule ^index\.html$  newsite.html
 
 <example>
 <pre>
-RewriteCond %{REMOTE_HOST}  ^host1.*  [OR]
-RewriteCond %{REMOTE_HOST}  ^host2.*  [OR]
-RewriteCond %{REMOTE_HOST}  ^host3.*
+RewriteCond %{REMOTE_HOST}  ^host1  [OR]
+RewriteCond %{REMOTE_HOST}  ^host2  [OR]
+RewriteCond %{REMOTE_HOST}  ^host3
 RewriteRule ...some special stuff for any of these hosts...
 </pre>
 </example>
@@ -779,10 +779,10 @@ RewriteRule ...some special stuff for any of these hosts...
 
 <example>
 <pre>
-RewriteCond  %{HTTP_USER_AGENT}  ^Mozilla.*
+RewriteCond  %{HTTP_USER_AGENT}  ^Mozilla
 RewriteRule  ^/$                 /homepage.max.html  [L]
 
-RewriteCond  %{HTTP_USER_AGENT}  ^Lynx.*
+RewriteCond  %{HTTP_USER_AGENT}  ^Lynx
 RewriteRule  ^/$                 /homepage.min.html  [L]
 
 RewriteRule  ^/$                 /homepage.std.html  [L]