Apache htaccess with mod_expires Not Working for certain directories

Posted by keyboarddrummer on Server Fault See other posts from Server Fault or by keyboarddrummer
Published on 2011-07-25T15:27:02Z Indexed on 2014/08/24 10:22 UTC
Read the original article Hit count: 267

Filed under:
|
|

I have a Joomla site that I am trying to enable caching using mod_expires. I have the .htaccess in the root of the site and have added the options as found on the page http://www.pactsoftware.nl/tools/joomla-optimization.html

Using the PageSpeed extension in Chrome, prior to adding this in my .htaccess, my site scores a 55 (Caching is at the top, and lists a lot of images, CSS, and JS files). After these directives, it scores 70, with caching in the yellow, but still lists some image files (some are two directories deep and the rest are four).

I checked for any other .htaccess files in the Joomla root, but none are between those folders and the root. It is almost as if htaccess only works in that one directory, not the subfolders.

I have tried putting a .htaccess in each affected subdirectory, but it does not work.

Does anyone have any ideas?

© Server Fault or respective owner

Related posts about apache-2.2

Related posts about .htaccess