The .htaccess cache settings for the HTML5 Boilerplate ( http://html5boilerplate.com/ ) are awesome, but I ran into a problem with the busting cache for version control of JS and CSS.
<IfModule mod_rewrite.c> RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)\.(\d+)\.(js|css|png|jpg|gif)$ $1.$3 [L] </IfModule>
I cannot get this to work with WordPress rewrite settings already present in the .htaccess file.
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>
In the best case, it will never be overwritten to my JS files. In the worst case, it crashes the site.
Anyone lucky this works with WordPress?
Chris ferdinandi
source share