I am using Filename-based cache busting, to make sure every time I make a change to a file resource revving happens (Steve Sounders Post).
For this matter I am using the following .htaccess file directive (HTML5 Boilerplate):
<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)\.(\d+)\.(js|css|png|jpe?g|gif)$ $1.$3 [L]
</IfModule>
In other words, all requests to "css/style-min.123.css" go to "css/style.css"
This is what I have in the page.xml file:
<action method="addCss"><stylesheet>css/styles-min.12.css</stylesheet></action>
The file "styles-min.css" is under my theme css folder (/skin/frontend/default/myTheme/css/styles-min.css)
However when I load the front page I get a not found error because magento searches for that file on the base theme css folder:
The requested URL /skin/frontend/base/default/css/styles-min.css was not found on this server.
Of course, if I copy styles-min.css to that folder, the site works fine (which means the .htaccess directive is good)
Can I make Magento search for that file under my theme's css folder even though it does not exist as a real file?
Hope I made myself clear enough.
Thanks!