LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > Apache Migration/Compatibility > disable/enable gzip compression, via .htaccess?

Reply
 
Thread Tools Display Modes
  #1  
Old 11-11-2008, 09:07 AM
furimedia furimedia is offline
Senior Member
 
Join Date: Mar 2008
Posts: 58
Default disable/enable gzip compression, via .htaccess?

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?
Reply With Quote
  #2  
Old 11-11-2008, 09:23 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
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.
Reply With Quote
  #3  
Old 11-12-2008, 06:33 AM
furimedia furimedia is offline
Senior Member
 
Join Date: Mar 2008
Posts: 58
Thank you Mister Wang

You just have so many tricks up your sleeves =D
Reply With Quote
  #4  
Old 02-14-2011, 05:11 PM
mobear410 mobear410 is offline
New Member
 
Join Date: Feb 2011
Posts: 1
Default disable zlib output compression

Quote:
Originally Posted by mistwang View Post
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.
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?
Reply With Quote
  #5  
Old 02-14-2011, 05:30 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
I think it is complaining about PHP output compression, litespeed has no effect, you have to do it from PHP side.
check output-handler
http://www.php.net/manual/en/outcont...output-handler

You need to google this topic.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 11:24 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.