Scoota P
Scoota P

Reputation: 2551

mod_rewrite for IE6 to static page on webserver

Our new website does not work in IE6 and honestly we wont make it work as its <1% of our traffic. I want to serve up a page that lives on the webserver that will be served up when a user comes to the site in IE6. What would be the best way to achieve this? It would be great if someone can provide a code snippet also.

I was able to get the redirect working by using this: RewriteCond %{HTTP_USER_AGENT} MSIE\ 6 RewriteRule ^(.*)$ /general/notsupported.html [L,R]

However, i wanted to also mask the url so if someone comes in on www.example.com/uri/querystring it will stay there but serve up a page saying "Sorry" ie6 is not supported.

Thanks in advance!

Upvotes: 1

Views: 122

Answers (1)

Alex Howansky
Alex Howansky

Reputation: 53533

Something like this should do it:

RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} whatever_the_ie6_user_agent_string_is
RewriteRule .* /path/to/your/static/page [R]

Upvotes: 2

Related Questions