在网站的配置文件中添加以下代码
location / {
# Redirect everything that isn't a real file to index.php
try_files $uri $uri/ /index.php?$args;
}
然后重启nginx
Nginx配置伪静态支持Yii2框架
最新推荐文章于 2024-06-14 19:51:30 发布
在网站的配置文件中添加以下代码
location / {
# Redirect everything that isn't a real file to index.php
try_files $uri $uri/ /index.php?$args;
}
然后重启nginx