【发布时间】:2013-07-04 15:53:13
【问题描述】:
这是我的 nginx 重写规则:
重写^/([a-z]+)/([a-z]+)/$ /index.php?app=$1&action=$2;
访问 /test/test/ 它可以工作,但访问 /test/ 它不会重写为 /index.php?app=test&action=
和 var_dump($_GET) 打印:array(1) { ["q"]=> string(6) "/test/" }
但是 $_GET['q'] 没有定义,为什么?
【问题讨论】:
标签: mod-rewrite nginx