Enabling gZIP compression

Discussion in 'Search Engine Optimization' started by emforce, Dec 27, 2009.

  1. #1
    Hi guys so I am trying to decrease the loading time of my website as we all know the new google update will now incorporate loading times into their algorithm. So I was wondering how I could enable GZIP compression on my wordpress based website.

    So far I have added this line:

    <?php if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start(); ?>

    but it seems to crash my server...

    Any help?
     
    emforce, Dec 27, 2009 IP
  2. anhbloginc

    anhbloginc Well-Known Member

    Messages:
    1,288
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    175
    #2
    anhbloginc, Dec 27, 2009 IP