1

Want to integrate gzip compression on my php site , but while I am implementing the code ob_start("ob_gzhandler"); it's giving me an error 'This webpage is not available' although the page exist in the server , gzip compression is also enabled in the server. Please suggest a way to implement it.

leppie
  • 115,091
  • 17
  • 196
  • 297

1 Answers1

0

Try this, Hope it'll help you

at the top of your index page put it

ob_start("ob_gzhandler");

And you need to do little more. Just write down below in your .htaccess

<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css          application/x-javascript application/javascript
</IfModule>
Tapas Pal
  • 7,073
  • 8
  • 39
  • 86