Forum Moderators: phranque
My current working .htaccess is below:
Options +FollowSymLinks -MultiViews -Indexes
RewriteEngine onRewriteCond %{REQUEST_URI}!^\/index\.php
RewriteCond %{REQUEST_URI}!^\/template
RewriteRule ^(.*)$ /index.php?mode=$1 [L]
Then I added what I thought would work for Netscape/Opera, but it doesn't redirect the user to the new page.
Options +FollowSymLinks -MultiViews -Indexes
RewriteEngine onRewriteCond %{HTTP_USER_AGENT} ^Netscape.*
RewriteRule http://www.example.com/netscape.html [R,L]
RewriteCond %{HTTP_USER_AGENT} ^Opera.*
RewriteRule http://www.example.com/opera.html [R,L]
RewriteCond %{REQUEST_URI}!^\/index\.php
RewriteCond %{REQUEST_URI}!^\/template
RewriteRule ^(.*)$ /index.php?mode=$1 [L]
Where did I go wrong?
RewriteCond %{HTTP_USER_AGENT} Netscape
RewriteCond %{REQUEST_URI} !^/netscape\.html$
RewriteRule .* http://www.example.com/netscape.html [R=302,L]
#
RewriteCond %{HTTP_USER_AGENT} Opera
RewriteCond %{REQUEST_URI} !^/opera\.html$
RewriteRule .* http://www.example.com/opera.html [R=302,L]