这行代码要不就放在vhosts.conf里,要不就是在nginx.conf里
try_files $uri $uri/ /index.php?$query_string;
           	        if (!-e $request_filename) {
                                         rewrite ^(.*)$ /index.php?s=/$1 last;
                                         break;
                                   }

 

具体位置如下phpstudy thinkphp5在nginx服务器上除了首页其余都是404的问题

相关文章:

  • 2021-12-02
  • 2022-12-23
  • 2022-01-02
  • 2021-10-16
  • 2022-12-23
  • 2022-12-23
  • 2021-04-15
  • 2021-05-11
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-28
  • 2022-12-23
相关资源
相似解决方案