Forum Moderators: phranque
I am almost done giving finishing touches to a major site & even though it looks as it should on all latest browsers (IE 7, 8, most FF's, Opera, Safari), however my good friend confirmed that it looks pretty silly in IE6, as it happens to break some of the css code.
So instead of redesigning whole site to fit IE6 and punishing those who upgrade their browsers, I am wanting to setup different lower grade version for IE6.
So someone please tell me how can I fix the below code, so it will redirect
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ^.*MSIE 6.*
RewriteRule /* [ie6.domain.com...]
Thanks for the help.
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="ie6.css" />
<![endif]-->
However it will be a real nightmare to touch existing design or make changes just for IE6. Instead I am already having a little older working theme (different colors and layout though) with most of the features. Since main and redirect sites will be using information from same database users to both places will see same information, however IE6 users will still get a working site (though with little less features). Know what I mean? I also plan to setup a nice info bar on top requesting them to upgrade their browser.
Thanks.
Thanks for the code, however for some reason it does not seem to work. It is not redirecting at all and keeping me on the original page.
Here is the current htaccess file
AddType text/html .html
AddHandler server-parsed .html
AddHandler server-parsed .htmRewriteEngine on
#
# Redirect IE 5 and IE 6 requests to version-specific subdomains
RewriteCond %{HTTP_USER_AGENT} MSIE\ ([56])\.
RewriteRule ^(.*)$ [myredirecturllocation.com...] [R=302,L]
Any idea on what might be wrong?
Thanks.
No there is no other rewrites on this site. In addition, since I am testing it on demo site, I cleared up all other info in htaccess and was testing with only required info.
Options +FollowSymLinks
ahead of "RewriteEngine on" and see if that helps.
Thanks a lot. :)