原文地址:
https://www.kancloud.cn/manual/thinkphp5_1/353955
nginx服务器宝塔网站配置下加入如下代码即可解决;
location / { // …..省略部分代码
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=/$1 last;
}
}
原文地址:
https://www.kancloud.cn/manual/thinkphp5_1/353955
nginx服务器宝塔网站配置下加入如下代码即可解决;
location / { // …..省略部分代码
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=/$1 last;
}
}
本文标题:Nginx解决TP5 伪静态 之 路由pathinfo模式 页面
本文链接:https://www.haomeiwen.com/subject/qcffpqtx.html
网友评论