mod_rewrite rule to send css|js to dynamic link
I want to send all requests for a file ending with css or js to a script this is the rule i have and it is not working
开发者_Go百科RewriteRule .*\.(js|css)$ /gzip.php=$0 [L]
This should work for you
RewriteRule ^(.*)\.(js|css)$ /gzip.php=$1 [L]
精彩评论