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

posted @ 2018-05-21 16:24  Bender9527  阅读(155)  评论(0编辑  收藏  举报