Forums

Gzipping Your Site (1 post)

  1. griffinjt
    Member
    Posted 2 years ago #

    My shared server does not allow the mod_gzip or mod_deflate option. So, the only way I can figure to gzip my pages are through PHP. I have added this line of code to the header.php file:

    <?php
    ob_start( 'ob_gzhandler' );
    ?>

    However, when I go to check websites for compression, it says my site is not compressed. Am I doing something wrong? Is there another way to compress (without sending through an alternate php file)?

Topic Closed

This topic has been closed to new replies.

About this Topic