项目配置文件vhosts加上:

if ( !-e $request_filename) {
	rewrite ^/(.*)$ /index.php/$1 last;
	break;
}

修改后如图

nginx 隐藏 index.php 直接访问

相关文章:

  • 2021-10-29
  • 2021-09-06
  • 2022-02-09
  • 2022-12-23
  • 2022-02-24
  • 2021-09-14
  • 2021-10-30
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-08
  • 2021-09-02
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案