开发者

mod_rewrite rule to send css|js to dynamic link

开发者 https://www.devze.com 2023-02-05 00:52 出处:网络
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百科

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

精彩评论

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