Send IE6 Packing via .htaccess

Want to have Apache automatically send IE6 users to an alternate/upgrade site? Drop this in your .htaccess file:

[crayon lang=”default”]

RewriteEngine On

# Send IE 5 and 6 packing
RewriteCond %{HTTP_USER_AGENT} MSIE\ ([56])\.
RewriteRule ^(.*)$ /ie6/ [R=302,L]
```

With /ie6/ being a folder on the root of your web server. Note you’ll need to have Apache’s mod_rewrite extension enabled for this to work.

You can take a look at our get-the-hell-off-IE6 page here.