Nginx开启pathinfo隐藏index.php

 location / {
    index  index.php index.html index.htm;
    if (-e $request_filename) {
        break;
    }
    if (!-e $request_filename) {
       rewrite ^/(.*)$ /index.php/$1 last;
       break;
    }
}

 

posted @ 2018-04-16 17:14  温柔的风  阅读(2)  评论(0编辑  收藏  举报