Reputation: 1594
I'm trying to use gzip on my site.
I'm trying to compress, php, css and js files. The server is apache 1.3, and the code I have in the .htaccess file is:
# compress all text & html:
AddOutputFilterByType DEFLATE text/html text/plain text/xml
But when I upload this, I just get an Error 500 page.
Any ideas.
Upvotes: 2
Views: 1937
Reputation: 269
Try this
<Files *>
#Compress
SetOutputFilter GZIP
</Files>
Or this
<ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript text/javascript
</ifmodule>
Upvotes: 3