Tips for a Secure Apache Web Server Using .htaccess
Disclaimer: We make no guarantees or warranties with regards to the following tips and suggestions for an Apache .htaccess file regarding security and compression settings.
It is your responsibility to test out these settings on your server and check for comparability and security.
Securing Apache Web Server with htaccess
While we are at it, let us enable server side GZIP compression of our text, html, javascript, css and xml:
While we are on the subject of file compression; if you are using WordPress, read our W3 Total Cache plugin settings for optimal operation article.
Don’t forget to lock down this file to prevent others from editing it. See our article about CHMOD permissions.
If this article was helpful please take a moment to like us on Facebook, share this on your social media or buy us a cup of coffee.