Wordpress: .htaccess E8 redirect with permalinks. conditional redirect?

Monday, May 5, 2014

In wordpress, I set the page url to be the post name via permalinks. The issue is I want to redirect ALL ie8 pages to a page called ie. The issue is there are 2 htaccess redirects. I have dug around and found a ton of IE8 redirects, but no conditional for my needs.

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

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress