标签:cal conf $1 common 伪静态 name rewrite 完整 bre
找到Nginx环境下站点的伪静态规则文件,一般是“域名.conf”。在local /下面添加代码。完整示例:
location / {
if (!-e $request_filename) {
rewrite /common/(.*)$ /common.php/$1 last;
rewrite /api/(.*)$ /api.php/$1 last;
rewrite ^(.*)$ /index.php?s=$1 last;
break;
}
}
记thinkphp5在Nginx环境下多入口 隐藏入口文件后缀
标签:cal conf $1 common 伪静态 name rewrite 完整 bre
原文地址:https://www.cnblogs.com/liiu/p/13093830.html