对码当歌,猿生几何?

nginx 重写去掉index.php

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