参考链接
https://blog.csdn.net/weixin_41676933/article/details/103858181
解决办法
添加下列代码到:vim www/server/panel/vhost/nginx/*******.conf
location / {
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=/$1 last;
}
}
本文介绍了一种在Nginx服务器中配置URL重写的方法,通过在特定的配置文件中添加代码片段,实现对不存在的请求路径进行重定向至默认的PHP入口文件,确保动态页面的正常访问。
参考链接
https://blog.csdn.net/weixin_41676933/article/details/103858181
解决办法
添加下列代码到:vim www/server/panel/vhost/nginx/*******.conf
location / {
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=/$1 last;
}
}

被折叠的 条评论
为什么被折叠?
