tp6访问方法404,或找不到方法
在宝塔中点击站点修改里面的配置文件加上一段
location / {
index index.html index.htm index.php;
#autoindex on;
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=/$1 last;
break;
}
}
在宝塔中点击站点修改里面的配置文件加上一段
location / {
index index.html index.htm index.php;
#autoindex on;
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=/$1 last;
break;
}
}