Re: redirect IE6 with mod_rewrite

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Aug 3, 2009 at 4:31 AM, Matus UHLAR - fantomas<uhlar@xxxxxxxxxxx> 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@xxxxxxxxxxx ; 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@xxxxxxxxxxxxxxxx
>   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>
>

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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux