Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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).

share|improve this question
Seems to be true: – splattne Jun 25 '09 at 15:48
up vote 4 down vote accepted

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.

share|improve this answer
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.

share|improve this answer

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

share|improve this answer

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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