I need to apply a minify actions to all the javascript and CSS files, except the ones I indicate.
I have this condition and rule that applies to all the files (css and js):
RewriteCond %{REQUEST_FILENAME} -f RewriteRule ^(.*\.)(js|css)$ minify.php?q=$1$2 [L,NC]
I need to add the conditions to say:
Apply to all except: jquery.js, prototype.js, etc..
Try this
The key to this is the inversion of the regex using the ‘!’ (exclamation point) to say the file name is not jquery.js and not prototype.js and it can be found on the hard drive.