开发者

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]
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜