sae index.php隱藏的設(shè)置方法:首先在項(xiàng)目的根目錄下找到“config.yaml”文件;然后添加代碼為“rewrite: if(!is_dir() && !is_file() && path~”即可隱藏“index.php”。
推薦:《PHP視頻教程》
thinkphp5在SAE上部署隱藏index.php
我們可以使用SAE提供的AppConfig服務(wù)實(shí)現(xiàn)偽靜態(tài)。在你項(xiàng)目的根目錄下找到config.yaml文件(沒有的話自己建一個(gè)),加上如下代碼:
handle: - rewrite: if(!is_dir() && !is_file() && path~"^(.*)$") goto "index.php/$1"
這樣就可以隱藏入口index.php。