在网站的配置文件中添加以下代码
location / {
# Redirect everything that isn't a real file to index.php
try_files uri/ /index.php?$args;
}
然后重启nginx
在网站的配置文件中添加以下代码
location / {
# Redirect everything that isn't a real file to index.php
try_files uri/ /index.php?$args;
}
然后重启nginx
本文标题:Nginx配置伪静态支持Yii2框架
本文链接:https://www.haomeiwen.com/subject/jliughtx.html
网友评论