httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rbo...@apache.org
Subject svn commit: r1090283 - in /httpd/httpd/branches/2.2.x/docs/manual: mod/mod_rewrite.html.en mod/mod_rewrite.xml rewrite/remapping.html.en rewrite/remapping.xml
Date Fri, 08 Apr 2011 14:46:45 GMT
Author: rbowen
Date: Fri Apr  8 14:46:45 2011
New Revision: 1090283

URL: http://svn.apache.org/viewvc?rev=1090283&view=rev
Log:
hernan gonzalez <hgonzalez gmail.com> points out that the USER_AGENT
strings were probably more accurate with the leading ^ anchor.

Modified:
    httpd/httpd/branches/2.2.x/docs/manual/mod/mod_rewrite.html.en
    httpd/httpd/branches/2.2.x/docs/manual/mod/mod_rewrite.xml
    httpd/httpd/branches/2.2.x/docs/manual/rewrite/remapping.html.en
    httpd/httpd/branches/2.2.x/docs/manual/rewrite/remapping.xml

Modified: httpd/httpd/branches/2.2.x/docs/manual/mod/mod_rewrite.html.en
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/docs/manual/mod/mod_rewrite.html.en?rev=1090283&r1=1090282&r2=1090283&view=diff
==============================================================================
--- httpd/httpd/branches/2.2.x/docs/manual/mod/mod_rewrite.html.en (original)
+++ httpd/httpd/branches/2.2.x/docs/manual/mod/mod_rewrite.html.en Fri Apr  8 14:46:45 2011
@@ -650,10 +650,10 @@ RewriteRule ...some special stuff for an
         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]

Modified: httpd/httpd/branches/2.2.x/docs/manual/mod/mod_rewrite.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/docs/manual/mod/mod_rewrite.xml?rev=1090283&r1=1090282&r2=1090283&view=diff
==============================================================================
--- httpd/httpd/branches/2.2.x/docs/manual/mod/mod_rewrite.xml (original)
+++ httpd/httpd/branches/2.2.x/docs/manual/mod/mod_rewrite.xml Fri Apr  8 14:46:45 2011
@@ -1082,10 +1082,10 @@ RewriteRule ...some special stuff for an
 
 <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]

Modified: httpd/httpd/branches/2.2.x/docs/manual/rewrite/remapping.html.en
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/docs/manual/rewrite/remapping.html.en?rev=1090283&r1=1090282&r2=1090283&view=diff
==============================================================================
--- httpd/httpd/branches/2.2.x/docs/manual/rewrite/remapping.html.en (original)
+++ httpd/httpd/branches/2.2.x/docs/manual/rewrite/remapping.html.en Fri Apr  8 14:46:45 2011
@@ -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>]

Modified: httpd/httpd/branches/2.2.x/docs/manual/rewrite/remapping.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/docs/manual/rewrite/remapping.xml?rev=1090283&r1=1090282&r2=1090283&view=diff
==============================================================================
--- httpd/httpd/branches/2.2.x/docs/manual/rewrite/remapping.xml (original)
+++ httpd/httpd/branches/2.2.x/docs/manual/rewrite/remapping.xml Fri Apr  8 14:46:45 2011
@@ -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>]



Mime
View raw message