Commit c8279168 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.0.x@1090280 13f79535-47bb-0310-9956-ffa450edef68
parent e8b8942e
Loading
Loading
Loading
Loading
+2 −2
Changes for docs/manual/mod/mod_rewrite.html.en: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -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]
+2 −2
Changes for docs/manual/mod/mod_rewrite.xml: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -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]
+2 −2
Changes for docs/manual/rewrite/rewrite_guide_advanced.html.en: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -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>]

+2 −2
Changes for docs/manual/rewrite/rewrite_guide_advanced.xml: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -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>]