1

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

Michael Haren
  • 1,301
  • 7
  • 18
  • 31

4 Answers4

5

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.

splattne
  • 28,508
  • 20
  • 98
  • 148
2

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.

squillman
  • 37,883
  • 12
  • 92
  • 146
0

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} MSIE
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.

Cheeso
  • 572
  • 3
  • 18
0

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