location /
{
autoindex on;
if (!-e $request_filename) {
rewrite ^/(.*?)/(.*)$ /$1/index.php/$2 last;
}
}
location ~ .*\.php.*
{
rewrite ^/([^/.]+)(?!/index\.php)(/.*)$ /$1/index.php$2 last;
include php_fcgi.conf;
include pathinfo.conf;
}
nginx reload 二级目录地址重写,正向负查
最新推荐文章于 2024-05-24 16:50:37 发布