原因

配置了一会儿,发现nginx配置是正确的;但是发现还是不能支持pathinfo路由的格式,真是奇怪了;
后来发现是nginx没有加载enable-php-pathinfo.conf这个配置文件。
直接上图了吧:
注意加载这个配置:include enable-php-pathinfo.conf
配置yii2的路由跟TP一样nginx(支持pathinfo路由模式)


yii2框架中config/web.php配置文件
配置yii2的路由跟TP一样nginx(支持pathinfo路由模式)

相关文章:

  • 2021-11-05
  • 2022-12-23
  • 2022-03-07
  • 2022-12-23
  • 2022-01-04
  • 2022-01-08
  • 2021-07-31
  • 2021-12-03
猜你喜欢
  • 2021-10-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
相关资源
相似解决方案