Disable static compression on Litespeed shared hosting via .htaccess

Posted on October 23rd, 2015

To disable gzip compression in on shared hosting with litespeed use a .htaccess file and enter

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

This is specific to static page compression, like javascript / css / html. PHP has built in compression such as zlib which is unrelated to compression offered by litespeed. More information on PHP compression is at http://www.php.net/manual/en/outcontrol.configuration.php#ini.output-handler

Leave a Reply