【发布时间】:2012-01-16 23:28:22
【问题描述】:
好吧...所以我有这个 css 捆绑器,使用以下链接:
http://www.example.com/min/?b=wp-content/themes/mytheme&f=style.css,boxes.css,mods.css,scripts.css
参数b是css文件夹url,参数f是要获取的css文件。
但是,为了帮助我的缓存,我希望问号消失。如果可能的话,类似:
http://www.example.com/min/b=wp-content/themes/mytheme&f=style.css,boxes.css,mods.css,scripts.css
我尝试了以下方法:
RewriteEngine On
RewriteRule ^/([^/\.]+)/?$ index.php?b=$1 [L]
不用说,它没有用。
【问题讨论】:
-
看来问题出在 b 值中的斜线
标签: php apache .htaccess mod-rewrite redirect