版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/itxiaolong3/article/details/89556315
1,在对应的网站中,点击配置文件。
在里面加入如下代码即可
location / {
if (!-e $request_filename) {
#一级目录
rewrite ^/(.*)$ /index.php/$1 last;
}
}