How to hide index.php on nginx

location /yii/web/ {
  try_files $uri $uri/ /yii/web/index.php?r=$request_uri;
}

参考链接:

https://www.yiiframework.com/wiki/15/how-to-hide-index-php-on-nginx

猜你喜欢

转载自www.cnblogs.com/islikuan/p/9067851.html
今日推荐