Commit 274627ac authored by Richard Bowen's avatar Richard Bowen
Browse files

hernan gonzalez <hgonzalez gmail.com> points out that the USER_AGENT

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
parent d2c9514c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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]
+2 −2
Original line number Diff line number Diff line
@@ -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]
+3 −3
Original line number Diff line number Diff line
@@ -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>]
+3 −3
Original line number Diff line number Diff line
@@ -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>]