1、1.去配置php.ini,让php支持pathinfo,然后开启。

2、2.在Nginx服务器下找到nginx.conf配置文件中的server加入以下配置代码:
判断是否为地址重定向。

3、3.跳转到指定的页面代码

4、4. 在nginx.conf配置文件加入以上配置后,使用命令:【lnmp restart】重启即可。
1、1.找到nginx.conf 配置文件。实现pathInfo开启代码:

2、2.这样就实现了nginx 支持pathInfo

3、3.完全支持tp5 隐藏index.php 以及支持 pathinfo代码
使用监听并判断如果报错让他跳转到指定的错误页面。

4、4.跳转到指定的页面代码:

