How to Enable GZIP Compression on Pair Networks

By Jon Henshaw

There’s a lot of different methods for enabling GZIP compression on PHP. Unfortunately, most of the common methods did not work for me on Pair Networks. In particular, trying to enable it via .htaccess for my WordPress sites proved fruitless.

I finally found the solution for enabling GZIP compression on Pair. All I had to do was add one simple line of PHP code to the top of my header.php file in my WordPress theme.

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

After you add the code, use the HTTP Compression Test to make sure the GZIP compression is working. If you want more tips on how to speed up your site, check out my article on how to speed up your site for Google.