Skip to main content
1 of 2
John Conde
  • 86.4k
  • 27
  • 147
  • 241

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