tp5部署上线只能访问首页处理方法

location / {
    if (!-e $request_filename) {
        rewrite ^(.*)$ /index.php?s=$1 last;
        break;
    }
}
给这两个文件夹设置权限
chmod -R 777 public

chmod -R 777 runtime

猜你喜欢

转载自blog.csdn.net/qq_40326199/article/details/81206941