I'm having a problem with a rewrite rule that I'm using for auto versioning of my CSS and JS.
I have the following HTML code to include my stylesheet:
<link rel="stylesheet" type="text/css" href="includes/css/index_home.1364215354.css" />
I use this in my .htaccess to strip the dot and the 10 digits:
RewriteEngine On
RewriteRule ^(.*)\.[\d]{10}\.(css|js)$ $1.$2 [L]
When I load the site, the stylesheet fails to load even though if I point my browser to http://www.example.com/includes/css/index_home.css I can see the stylesheet.
The method I'm trying to use, I found here How to force browser to reload cached CSS/JS files?
I'm guessing the RewriteRule is the problem, but I don't know why.