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]
<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]
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>]
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>]