codehaven - php snippets - coding help
Generic filters
Exact matches only

Enable Gzip Compression using .htaccess

21st June 2013

Admin WP

wordpress category

To enable Gzip compression on your WordPress website add the following code.

For WordPress I have found this works best…Add this to the very top of your .htaccess file, found in the root. Tried the plugin WP HTTP Compression but its the same result as this following code.

Then test here http://gzipwtf.com/

Was this code snippet helpful?