Home  >  Article  >  Backend Development  >  sae index.php hidden setting method

sae index.php hidden setting method

藏色散人
藏色散人Original
2020-09-04 09:57:072036browse

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

sae index.php hidden setting method

推荐:《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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn