sae index.php隐藏的设置方法:首先在项目的根目录下找到“config.yaml”文件;然后添加代码为“rewrite: if(!is_dir() && !is_file() && path~”即可隐藏“index.php”。

推荐:《PHP视频教程》
thinkphp5在SAE上部署隐藏index.php
我们可以使用SAE提供的AppConfig服务实现伪静态。在你项目的根目录下找到config.yaml文件(没有的话自己建一个),加上如下代码:
handle: - rewrite: if(!is_dir() && !is_file() && path~"^(.*)$") goto "index.php/$1"
这样就可以隐藏入口index.php。
The above is the detailed content of sae index.php hidden setting method. For more information, please follow other related articles on the PHP Chinese website!
Website domain name valuation tool
What software is cdr
html comments
How to leave two spaces empty in a paragraph in html
How to use setrequestproperty
Usage of exit function in c language
The difference between get request and post request
How to solve the problem that the print processor does not exist