Skip to main content
2 of 2
replaced http://webmasters.stackexchange.com/ with https://webmasters.stackexchange.com/

The output of PHP files is HTML. That HTML will be compressed using the code in this question:

AddOutputFilterByType DEFLATE text/html text/plain text/xml text/javascript text/css application/javascript application/json

That's all you need to do (assuming mod_deflate is enabled for Apache).

John Conde
  • 86.4k
  • 27
  • 147
  • 241