mod_rewrite to redirect to specific WP page

Posted by djdy on Server Fault See other posts from Server Fault or by djdy
Published on 2012-06-27T21:03:53Z Indexed on 2012/06/27 21:19 UTC
Read the original article Hit count: 151

Filed under:

The goal is to redirect all requests coming to Wordpress from IE 6 and 7, to a specific Wordpress page using mod_rewrite.

My confusion comes from multiple conditions that are needed for the rewrite not entering an endless loop once on the specific Wordpress page. So the condition must be: (IE 6 or 7) and request is not the same as the page we are sending them to.

I've tried things along the lines of:

RewriteCond %{HTTP_USER_AGENT} MSIE\ ([67])\.
RewriteCond %{REQUEST_URI} !iepage
RewriteRule .* /iepage/ [R]

In IE 6 and 7, I get page cannot be displayed errors. Could it really mean too many redirects, because the 2nd condition isn't working?

© Server Fault or respective owner

Related posts about mod-rewrite