The following code can be placed in your .htaccess file to compress content using mod_deflate, which reduces bandwidth and download time. The visitor’s browser will uncompress the page requested.
<IfModule mod_deflate.c>
SetOutputFilter DEFLATE
</IfModule>