Horje
How to Enable GZIP output compression

Normally the server should be set up to do this automatically, but a lot of shared hosts don’t do this (probably to increase client bandwidth usage).


Method-1: Enable GZIP output compression

Just copy and paste following codes to yourdomain.com/wp-content/themes/activated-theme/fucntions.php in the most below.
Example: PHP
 if(extension_loaded("zlib") && (ini_get("output_handler") != "ob_gzhandler"))
   add_action('wp', create_function('', '@ob_end_clean();@ini_set("zlib.output_compression", 1);'));





Category:
Web Tutorial
Sub Category:
Wordpress Security Shortcode
Uploaded by:
Admin