Chris Burton
Chris Burton

Reputation: 1205

Redirect IE 6, 7 and 8 users with htaccess

How can I redirect users for IE versions 6-8 with htaccess to a certain directory (mysite.com/ie)?

Note: I am using Wordpress.

Upvotes: 3

Views: 8470

Answers (2)

Chris Ingis
Chris Ingis

Reputation: 696

It is much more simple to handle this with a simple javascript function. You can also use HTML. Here's a sample of javascript that detects the browser version. You should be able to tailor this to suit your needs:

Detecting Windows Internet Explorer More Effectively

Upvotes: -5

jspcal
jspcal

Reputation: 51894

something like:

RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} "MSIE [6-8]" [NC]
RewriteRule ^(.*)$ http://mysite.com/ie [R=301,L]

Upvotes: 15

Related Questions