]> 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:44:02 +0000 (14:44 +0000)
committerRich Bowen <rbowen@apache.org>
Fri, 8 Apr 2011 14:44:02 +0000 (14:44 +0000)
strings were probably more accurate with the leading ^ anchor.

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

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

index 8a1c0a5bff2f9e14d590413a68aef1ab19904bad..1ce201e542b3066db27f3a5b06d95d68249bbcd7 100644 (file)
@@ -681,10 +681,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 df69faa8f88381115e81f7fcd7e188485460619d..a2e90b0e1981950dd684c3bc52d64ea9d3a0db9b 100644 (file)
@@ -1126,10 +1126,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 6919bc937527f555a9363ca77ab166aee8320a80..37236b0a0492540118f47eaeb5a4c2e18f787802 100644 (file)
@@ -447,10 +447,10 @@ com       ftp://ftp.cxan.com/CxAN/
           This is done with the following ruleset:</p>
 
 <div class="example"><pre>
-RewriteCond %{HTTP_USER_AGENT}  <strong>Mozilla/3</strong>
+RewriteCond %{HTTP_USER_AGENT}  <strong>^Mozilla/3</strong>
 RewriteRule ^foo\.html$         foo.<strong>NS</strong>.html          [<strong>L</strong>]
 
-RewriteCond %{HTTP_USER_AGENT}  <strong>Lynx/</strong>         [OR]
+RewriteCond %{HTTP_USER_AGENT}  <strong>^Lynx/</strong>         [OR]
 RewriteCond %{HTTP_USER_AGENT}  <strong>Mozilla/[12]</strong>
 RewriteRule ^foo\.html$         foo.<strong>20</strong>.html          [<strong>L</strong>]
 
index d5ea61d9342d126801167164a9eac76673edc80a..c0c1fb9687071797274e73a5eeb520ba41018562 100644 (file)
@@ -450,10 +450,10 @@ com       ftp://ftp.cxan.com/CxAN/
           This is done with the following ruleset:</p>
 
 <example><pre>
-RewriteCond %{HTTP_USER_AGENT}  <strong>Mozilla/3</strong>
+RewriteCond %{HTTP_USER_AGENT}  <strong>^Mozilla/3</strong>
 RewriteRule ^foo\.html$         foo.<strong>NS</strong>.html          [<strong>L</strong>]
 
-RewriteCond %{HTTP_USER_AGENT}  <strong>Lynx/</strong>         [OR]
+RewriteCond %{HTTP_USER_AGENT}  <strong>^Lynx/</strong>         [OR]
 RewriteCond %{HTTP_USER_AGENT}  <strong>Mozilla/[12]</strong>
 RewriteRule ^foo\.html$         foo.<strong>20</strong>.html          [<strong>L</strong>]