]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
hernan gonzalez <hgonzalez gmail.com> points out that the USER_AGENT
authorRich Bowen <rbowen@apache.org>
Fri, 8 Apr 2011 14:46:45 +0000 (14:46 +0000)
committerRich Bowen <rbowen@apache.org>
Fri, 8 Apr 2011 14:46:45 +0000 (14:46 +0000)
strings were probably more accurate with the leading ^ anchor.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@1090283 13f79535-47bb-0310-9956-ffa450edef68

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

index badce44196227ca6981b459e607693f07fd2ae07..d72297c9685204b5027283c9825756d118288446 100644 (file)
@@ -650,10 +650,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 e29aad930ce33a2f4c0e8600c9b8ee26a5171408..a11f4fbc9ff58e97c271d9bbc2636334ac3b5f9d 100644 (file)
@@ -1082,10 +1082,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]
index 1bae21c312dd49074cef72c7c55e729ce228dc43..f71b214b330b1152b3dd98e0df39b839504ea90d 100644 (file)
@@ -461,11 +461,11 @@ com       http://www.example.com/<br />
       This is done with the following ruleset:</p>
 
 <div class="example"><p><code>
-RewriteCond %{HTTP_USER_AGENT}  <strong>Mozilla/3</strong>.*<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>]
index ddf289199bf10519d6f8b641ecaaeb666f28d6bf..2f17258747423f3d63daeb874d0d1a28fc367694 100644 (file)
@@ -464,11 +464,11 @@ com       http://www.example.com/<br />
       This is done with the following ruleset:</p>
 
 <example>
-RewriteCond %{HTTP_USER_AGENT}  <strong>Mozilla/3</strong>.*<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>]