Page compression (gzip/deflate)

zordon19

New Member
Messages
4
Reaction score
0
Points
0
How do you enable page compression?

I'm using the free x10hosting. I checked my site with an online page compression test and it says my page is not compressed. Then I checked http://forums.x10hosting.com with the same tool and it is compressed.

I tried to edit my .htaccess file a couple of times, adding some code that was supposed to enable the compression but with no success.

Can you help?
 

ah-blabla

New Member
Messages
375
Reaction score
7
Points
0
Adding the line
Code:
SetOutputFilter DEFLATE
in .htaccess should make apache compress content, but it doesn't seem to work for me either.

Another option is to tell php to encode content, which works here: this line has to be added at the beginning of your php file:
PHP:
ob_start("ob_gzhandler");
However this only works for php files.
 
Top