tp6访问方法404,或找不到方法

在宝塔中点击站点修改里面的配置文件加上一段

location / {
index  index.html index.htm index.php;
#autoindex  on;

        if (!-e $request_filename) {
         rewrite  ^(.*)$  /index.php?s=/$1  last;
         break;
        }
  }
最后修改:2020 年 11 月 11 日
如果觉得我的文章对你有用,请随意赞赏