小黑Neo

关注

nginx隐藏index.php ||include vhost

小黑Neo

关注

阅读 47

2023-02-15


location / { // …..省略部分代码
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=/$1 last;
break;
}
}

如果配置多个server 不再同一个文件,则在nginx 下添加

include vhost/*.conf;


相关推荐

hwwjian

phpstudy隐藏index.php

hwwjian 47 0 0

快乐小鱼儿_9911

php mvc 通过 htaccess 隐藏 index.php 或 index.php?arg=

快乐小鱼儿_9911 79 0 0

写心之所想

Yii系列总结:隐藏index.php步骤

写心之所想 74 0 0

残北

thinkphp5.1隐藏index.php入口文件

残北 125 0 0

玉新行者

apache 访问www.a.com/index.php/index 去除index.php

玉新行者 215 0 0

Ewall_熊猫

nginx 修改配置文件使之支持pathinfo,且隐藏index.php

Ewall_熊猫 85 0 0

weipeng2k

eyoucms 去掉 index.php后缀

weipeng2k 18 0 0

捡历史的小木板

index index.html index.htm index.php

捡历史的小木板 87 0 0

天际孤狼

Ubuntu安装nginx_php7以及配置index.php启动

天际孤狼 73 0 0

云朵里的佛光

ecshop index.php源代码分析

云朵里的佛光 143 0 0

精彩评论(0)

0 0 举报