thinkphp6伪静态

文章描述:

thinkphp6在nginx环境下添加伪静态规则

 

phpstudy v8

网站→管理→修改→伪静态→里面添加代码:

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

 

宝塔面板

网站→设置→伪静态→选择thinkphp

 

发布时间:2021/08/06

发表评论