计算机网络/计算机科学与应用/系统/运维/开发

Tp6 Nginx 隐藏index.php

Nginx 环境下


找到域名对应的配置文件:

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

重启Nginx!

tp6

知识是抵御一切灾祸的盾牌

评论

^