Home > Backend Development > PHP Problem > sae index.php hidden setting method

sae index.php hidden setting method

藏色散人
Release: 2023-03-05 18:24:02
Original
2239 people have browsed it

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"
Copy after login

这样就可以隐藏入口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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template