页面全部提示404,
nginx平台下需要额外配置yii rewrite规则,配置如下: 在nginx 的配置文件nginx.conf //增加部分 location / { # Redirect everything that isn't a real file to index.php try_files $uri $uri/ /index.php?$args; } 重启nginx服务 //路由优化 'components' => [ 'urlManager' => [ 'class' => 'yii\web\UrlManager', 'enablePrettyUrl' => true, 'showScriptName' => false, ], ]

 

相关文章:

  • 2021-07-22
  • 2021-06-01
  • 2021-05-06
  • 2021-10-20
  • 2021-08-26
  • 2021-07-16
  • 2021-06-06
猜你喜欢
  • 2021-05-04
  • 2021-07-09
  • 2022-12-23
  • 2021-06-25
  • 2021-05-02
  • 2021-08-27
相关资源
相似解决方案