niginx隐藏入口文件index.php

        location / {

            if (!-e $request_filename) {

                    rewrite ^/(.*)$ /index.php/$1 last;
                    break;

            }   

        }

原文地址:https://www.cnblogs.com/xiaobiaomei/p/8966368.html