disable/enable gzip compression, via .htaccess?

Discussion in 'Apache Migration/Compatibility' started by furimedia, Nov 11, 2008.

  1. furimedia

    furimedia New Member

    anyone know how i can disable or enable gzip compression via .htaccess?

    it seems once i set it enabled on the LS, there is no way to turn this off client side?
  2. mistwang

    mistwang LiteSpeed Staff

    Use a rewrite rule in .htaccess to disable it

    RewriteRule . - [E=no-gzip:1]

    Above rule will disable it globally. however, you can customize the rewrite to disable gzip selectively.
  3. furimedia

    furimedia New Member

    Thank you Mister Wang

    You just have so many tricks up your sleeves =D
  4. mobear410

    mobear410 New Member

    disable zlib output compression

    I am setting up w3 total cache on my sites and it seems to require that the zlib output compression be turned off. I applied this to my .htaccess and while the site did continue working w3 total cache still says that it is on. Any suggestions to a novice in using .htaccess or changing the PHP files?
  5. mistwang

    mistwang LiteSpeed Staff

Share This Page