寶塔面板nginx配置隱藏index.php 入口文件

一、網站設置php

二、僞靜態,寫入一下代碼便可網站

location / {
    if (!-e $request_filename){
        rewrite ^(.*)$ /index.php?s=$1 last; break;
    }
}
 blog

相關文章
相關標籤/搜索