宝塔 tp5.1 NGINX 报404解决

更新于 2020-10-07 15:05 534
专栏: PHP 标签: php nginx

配置文件中加入

  1. location / {
  2. if (!-e $request_filename) {
  3. rewrite ^(.*)$ /index.php?s=/$1 last;
  4. break;
  5. }
  6. }