如何在不修改tp3框架结构的情况下隐藏index.php文件?
- 内容介绍
- 文章标签
- 相关推荐
本文共计615个文字,预计阅读时间需要3分钟。
要隐藏index.php的方法如下:
1.找到并打开Application/Common/Conf/config.php文件;
2.修改文件中的代码,将return array(URL_MODEL=> 2);更改为return array(URL_MODEL=> 1);;
3.这样即可开启REWRITE模式。
操作环境:
- Windows 10系统- ThinkPHP3版本- 使用Dell G系列电脑tp3隐藏index.php的方法:1、找到并打开“Application/Common/Conf/config.php”文件;2、通过修改“return array('URL_MODEL'=> 2,);”开启REWRITE模式即可。
本教程操作环境:Windows10系统、thinkphp3版、Dell G3电脑。
tp3怎么隐藏index.php?
tp3隐藏index.php
将Application/Common/Conf/config.php文件开启REWRITE模式即可。
本文共计615个文字,预计阅读时间需要3分钟。
要隐藏index.php的方法如下:
1.找到并打开Application/Common/Conf/config.php文件;
2.修改文件中的代码,将return array(URL_MODEL=> 2);更改为return array(URL_MODEL=> 1);;
3.这样即可开启REWRITE模式。
操作环境:
- Windows 10系统- ThinkPHP3版本- 使用Dell G系列电脑tp3隐藏index.php的方法:1、找到并打开“Application/Common/Conf/config.php”文件;2、通过修改“return array('URL_MODEL'=> 2,);”开启REWRITE模式即可。
本教程操作环境:Windows10系统、thinkphp3版、Dell G3电脑。
tp3怎么隐藏index.php?
tp3隐藏index.php
将Application/Common/Conf/config.php文件开启REWRITE模式即可。

