1,在对应的网站中,点击配置文件。

宝塔中隐藏tp5中的index.php方法

在里面加入如下代码即可

location / {
       if (!-e $request_filename) {
            #一级目录
            rewrite ^/(.*)$ /index.php/$1 last;
        }  
    }

 

相关文章:

  • 2021-11-05
  • 2021-07-18
  • 2022-12-23
  • 2022-01-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-18
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-15
  • 2022-12-23
  • 2021-09-04
  • 2022-12-23
相关资源
相似解决方案