rewrite Accept-Encoding for IE6 pre-SP2

Oct 24, 2009 at 7:24 AM

Apparently versions of Internet Explorer 6 prior to Service Pack 2 have a bug with gzip.   Microsofts solution in their knowledge base articles say to turn off httpcompression or get your users to patch ie6.  Neither of which is practical.

So i'm hoping to use your rewrite filter to accomplish this person's solution:

They use ISAPI Rewrite and apparently defining the rules are slightly different.

In English the rule would be:

if the User-Agent header contains "MSIE 6" and does *NOT* contain "SV1" then set the Accept-Encoding to 'none'.

I've started with:

RewriteCond  %{HTTP_USER_AGENT}  MSIE 6     [I]
RewriteCond  %{HTTP_USER_AGENT}  (not sure what to put here)       [I,L]        
RewriteHeader Accept-Encoding: .* none

But wasn't sure how to specify NOT "SV1" in the second RewriteCond.

Thanks for your help and thanks for IIRF!




Oct 25, 2009 at 3:05 AM

Thomas, yes, IIRF should work just fine for that purpose.  The rule should be:

RewriteCond  %{HTTP_USER_AGENT}  MSIE.[56]     [I]
RewriteCond  %{HTTP_USER_AGENT}  (?!SV1)       [I]        
RewriteHeader Accept-Encoding: .* none