Enable gzip compression using the .htaccess file for Apache

Speed up your website and use gzip compression using the .htaccess file in the root of your website’s directory if you are using Apache or NGIX (Linux). You can actually use two different Apache mods to enable HTTP gzip compression: mod_gzip and mod_deflate....