+ Reply to Thread
Results 1 to 3 of 3

Thread: Page compression (gzip/deflate)

  1. #1
    zordon19 is offline x10Hosting Member zordon19 is an unknown quantity at this point
    Join Date
    Oct 2009
    Posts
    4

    Page compression (gzip/deflate)

    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?

  2. #2
    ah-blabla's Avatar
    ah-blabla is offline x10 Lieutenant ah-blabla is an unknown quantity at this point
    Join Date
    Sep 2009
    Posts
    375

    Re: Page compression (gzip/deflate)

    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 Code:
    ob_start("ob_gzhandler"); 
    However this only works for php files.

  3. #3
    zordon19 is offline x10Hosting Member zordon19 is an unknown quantity at this point
    Join Date
    Oct 2009
    Posts
    4

    Re: Page compression (gzip/deflate)

    This is exactly what I was looking for, thanks!

+ Reply to Thread

Similar Threads

  1. [REQ][$$$]1 page image flash redesign for choclate sales
    By tgkprog in forum The Marketplace
    Replies: 5
    Last Post: 11-17-2008, 09:53 AM
  2. Use PHP to add Content to page through Admin
    By goldy30 in forum Programming Help
    Replies: 1
    Last Post: 11-12-2008, 11:13 PM
  3. Unique php page
    By bunglebrown in forum Programming Help
    Replies: 48
    Last Post: 11-08-2008, 08:59 AM
  4. Replies: 0
    Last Post: 10-19-2008, 09:40 PM
  5. Passing variables from page to page
    By os242 in forum Scripts & 3rd Party Apps
    Replies: 3
    Last Post: 09-15-2007, 02:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers