httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <>
Subject Re: [users@httpd] RewriteRule
Date Fri, 04 Aug 2006 20:40:58 GMT
On 8/4/06, Ikke Snoeckx <> wrote:
> Hello all
> I seem to have a weird problem with a RewriteRule...
> RewriteCond %{HTTP_USER_AGENT} !^Mozilla/5.* [OR]
> RewriteCond %{HTTP_USER_AGENT} !^Opera.*
> RewriteRule ^/$ [R]
> Basically, I want every MSIE to be redirected to (please
> don't argue or ask why...), so I came up with this RewriteRule (assuming
> MSIE has Mozilla/4.0 as User Agent)...
> Problem is, *everyone* gets redirected...
> What did I do wrong and what is the solution to this?

Remove the [OR].  All requests are (Not Mozilla) OR (Not Opera).


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message