laravel隐藏index.php(laravel nginx环境下配置rewrite隐藏index.php)

这就是一个笔记 That’s all

在nginx配置文件中location / 中添加如下判断。然后记得重启。。

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

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/Qcg0223/article/details/105116317