httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Zuckerman <j.zucker...@gmail.com>
Subject Re: [users@httpd] redirect IE6 with mod_rewrite
Date Mon, 03 Aug 2009 16:51:26 GMT
On Mon, Aug 3, 2009 at 4:31 AM, Matus UHLAR - fantomas<uhlar@fantomas.sk> wrote:
> On 02.08.09 17:38, MK wrote:
>> I'm trying to redirect IE6 users to a special page using mod_rewrite,
> ...
>> RewriteCond %{HTTP_USER_AGENT}  .*Mozilla.*
> ...
>> I've played around lots with the regex ("^Mozilla.*",
>> "Mozilla", "^Mozilla", even ".*"), etc. but nothing works.
>
> many browsers advertise themselves as mozilla. Mozilla was originally
> internal codename od netscape navigator (or its engine?) and microsoft
> browsers use the name too. This way you won't redirect only IE6 but even
> newer IEs, real Mozilla browsers and possibly others...
>
> --
> Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
> Warning: I wish NOT to receive e-mail advertising to this address.
> Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
> He who laughs last thinks slowest.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Indeed, try logging the server variables on your webpage on every
browser you can think of and you'll see how they identify themselves,
I personally would use this pattern to single out IE6:

.*MSIE 6.*

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message