I'm seeing some problems with IE6 (pre SP2) that seem to be related to http compression. I'd like to disable http compression just for those users. Any suggestions?

Something along the lines of this might work (but for IIS, not Apache).


ISAPI Rewrite runs on IIS 6.0, so the solution on that page you linked, should work:

Simply add the following lines to the global rules file (httpd.conf in your ISAPI_Rewrite installation directory):

RewriteEngine on

RewriteCond %{HTTP:User-Agent} MSIE\ [56]
RewriteCond %{HTTP:User-Agent} !SV1
RewriteCond %{REQUEST_URI} \.(css|js)$
RewriteHeader Accept-Encoding: .* $1

If you don't want to spend 99 USD for the license (I think it's worth, I used it myself on IIS 6.0), there is an open source project on CodePlex, which works in a similar way.

  • I guess I saw references to HTTP.conf and assumed apache. Thanks! – Michael Haren Jun 25 '09 at 15:58
  • +1 you got me on the speed :) – squillman Jun 25 '09 at 16:00

That link you referred to IS for IIS. ISAPI_Rewrite is an ISAPI filter for IIS used for URL rewrites (ala Apache's mod_rewrite). It should do the trick for you.

ISAPI_Rewrite is very inexpensive and has a free lite version as well. The majority of mod_rewrite rules will port straight into ISAPI_Rewrite.

An alternative that is completely free, albeit it a bit harder to get set up, is Ionic's ISAP Rewrite. There are subtle differences in the rule interpreter so you'll have to do some minor tweaking.


Can someone give me this example in APACHE and including swift files. My guess is:- RewriteEngine on

RewriteCond %{HTTP:USER_AGENT} ^MSIE\ [56] RewriteCond %{HTTP:User-Agent} ^!SV1 RewriteCond %{REQUEST_URI} ^.(css|js|swf)$ RewriteHeader Accept-Encoding: ^.* $1

But doesnt seem to work


Yes, you can do the same thing in IIRF, which is free. The rule is slightly different than the one used in ISAPI_Rewrite.

RewriteEngine on

RewriteCond %{HTTP_USER_AGENT} (?!SV1)
RewriteCond %{REQUEST_URI}  \.(css|js)$
RewriteHeader Accept-Encoding:  .*   $1

There's a video showing how to set up and configure IIRF (Ionic's ISAPI Rewrite). It's pretty simple.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.