Jump to content

htaccess gzip


Guest FirefoxRocks

Recommended Posts

Guest FirefoxRocks

Ok since I'm using a buffering function in my PHP code, I can't use ob_start('ob_gzhandler); . I have to enable gzip compression in htaccess, but I've tried many code samples I've found on Google with no luck.I only need to compress HTML and PHP output, I already have JavaScript and CSS taken care of. Can anyone please give me some code that works?

Link to comment
Share on other sites

Guest FirefoxRocks
Do you need to use htaccess files or does your server have cPanel? You can use cPanel's Optimize Website tool to compress any mime types you tell it to.
I can't find any option that says Optimize Website in cPanel.
Link to comment
Share on other sites

It's under the Software/Services section, but your host may have disabled it for whatever reason. If that's the case, it's probably best that you ask the host how to enable compression for those things.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...