HowTo: Tune your wordpress – these .htaccess tricks speed up your website!

Google PageSpeed Insights told you, that your wordpress website is too slow? Need better performance? These .htaccess settings for your apache speed up your website!

What you have to do is simply tune up your htaccess, inject gzip and discard ballast.
Gzip and Deflate Compression shrink overweight pounds of the website, as well as serve cache and expire sites via htaccess in a optimal way.

This is how it works:
I have been looking for an optimal htaccess which takes account of all the recommendations of Page Speed. First we need to setup the apache2 modules, i am using a ubuntu/debian system:


These are the suggestions made by Google for a optimized .htaccess file. Just add them to your .htaccess file on your domain root.


good luck and have fun!

1 thought on “HowTo: Tune your wordpress – these .htaccess tricks speed up your website!”

Leave a Comment