去掉地址中得index.php

1、先进入后台管理-设置-永久链接;
启用重定向并保存(注意忽略错误)
2、开启nginx重定向,在nginx.conf文件中添加(location同级)

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

或者使用bt直接添加伪静态

最后修改:2021 年 06 月 07 日
如果觉得我的文章对你有用,请随意赞赏