KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
The .htaccess cache settings for HTML5 Boilerplate ( http://html5boilerplate.com/ ) are awesome, but I'm running into an issue with the cache busting settings for JS and CSS versioning. <IfModule mod_rewrite.c> RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)\.(\d+)\.(js|css|png|jpg|gif)$ $1.$3 [L] </IfModule> I can't seem to get this to work with the 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> At best, the rewrite on my JS files never happens. At worst, it breaks the site. Anyone had any luck getting this to work with WordPress?
Tags (comma-separated)
Save Edits
Cancel