Thinkphp5如何隐藏或者加上入口文件index.php

Thinkphp5如何隐藏入口文件index.php,我们只需要在thinkphp框架的

// 在执行应用前加上如下代码
\think\Url::root('/');

// 执行应用
\think\App::run()->send();
//显示index.php方法设置
\think\Url::root('/index.php');
// 执行应用
\think\App::run()->send();


支付宝扫码打赏 微信扫码打赏

如果本文对你有帮助,欢迎打赏本站

喜欢 ()or分享
    匿名评论
  • 评论
人参与,条评论