Tag: .htaccess
-
Apache SetEnvIf Logical AND with Two Variables
In trying to adjust the method of logging in Apache, it was found logical to have the configuration perform an AND on two variables to validate one format vs another. I had not found much detail on this, until making my way to: http://stephane.lesimple.fr/blog/2010-01-28/apache-logical-or-and-conditions-with-setenvif.html. From the page archived, I had the following: CustomLog /var/log/apache2/loopback_posts.log combined…
-
Leverage Browser Caching in .htaccess File
Leverage browser caching The following cacheable resources have a short freshness lifetime. Specify an expiration at least one week in the future for the following resources: With a note of: (expiration not specified) To deal with this, I added the following to my .htaccess file: <FilesMatch “\.(ico|jpg|jpeg|png|gif|js|css|swf|woff|ICO|JPG|JPEG|PNG|GIF|JS|CSS|SWF|WOFF)$”> <IfModule mod_expires.c> ExpiresActive on ExpiresDefault “access plus 30…