httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rbo...@apache.org
Subject svn commit: r1090280 - in /httpd/httpd/branches/2.0.x/docs/manual: mod/mod_rewrite.html.en mod/mod_rewrite.xml rewrite/rewrite_guide_advanced.html.en rewrite/rewrite_guide_advanced.xml
Date Fri, 08 Apr 2011 14:44:02 GMT
Author: rbowen
Date: Fri Apr  8 14:44:02 2011
New Revision: 1090280

URL: http://svn.apache.org/viewvc?rev=1090280&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.0.x/docs/manual/mod/mod_rewrite.html.en
    httpd/httpd/branches/2.0.x/docs/manual/mod/mod_rewrite.xml
    httpd/httpd/branches/2.0.x/docs/manual/rewrite/rewrite_guide_advanced.html.en
    httpd/httpd/branches/2.0.x/docs/manual/rewrite/rewrite_guide_advanced.xml

Modified: httpd/httpd/branches/2.0.x/docs/manual/mod/mod_rewrite.html.en
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.0.x/docs/manual/mod/mod_rewrite.html.en?rev=1090280&r1=1090279&r2=1090280&view=diff
==============================================================================
--- httpd/httpd/branches/2.0.x/docs/manual/mod/mod_rewrite.html.en (original)
+++ httpd/httpd/branches/2.0.x/docs/manual/mod/mod_rewrite.html.en Fri Apr  8 14:44:02 2011
@@ -681,10 +681,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.0.x/docs/manual/mod/mod_rewrite.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.0.x/docs/manual/mod/mod_rewrite.xml?rev=1090280&r1=1090279&r2=1090280&view=diff
==============================================================================
--- httpd/httpd/branches/2.0.x/docs/manual/mod/mod_rewrite.xml (original)
+++ httpd/httpd/branches/2.0.x/docs/manual/mod/mod_rewrite.xml Fri Apr  8 14:44:02 2011
@@ -1126,10 +1126,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.0.x/docs/manual/rewrite/rewrite_guide_advanced.html.en
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.0.x/docs/manual/rewrite/rewrite_guide_advanced.html.en?rev=1090280&r1=1090279&r2=1090280&view=diff
==============================================================================
--- httpd/httpd/branches/2.0.x/docs/manual/rewrite/rewrite_guide_advanced.html.en (original)
+++ httpd/httpd/branches/2.0.x/docs/manual/rewrite/rewrite_guide_advanced.html.en Fri Apr
 8 14:44:02 2011
@@ -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>]
 

Modified: httpd/httpd/branches/2.0.x/docs/manual/rewrite/rewrite_guide_advanced.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.0.x/docs/manual/rewrite/rewrite_guide_advanced.xml?rev=1090280&r1=1090279&r2=1090280&view=diff
==============================================================================
--- httpd/httpd/branches/2.0.x/docs/manual/rewrite/rewrite_guide_advanced.xml (original)
+++ httpd/httpd/branches/2.0.x/docs/manual/rewrite/rewrite_guide_advanced.xml Fri Apr  8 14:44:02
2011
@@ -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>]
 



Mime
View raw message