基本可以确定你用的CI框架
if (\$request_uri !~ ^/(html|static|favicon/.ico|robots/.txt|index/.php.*) ) {
                        rewrite ^/(.*)\$ /index.php/\$1 last;
                        break;
                }

解决方案 »

  1.   

    上面那个是错误的
    这个的意思是如果访问  html  static等这些静态目录时直接返回,如果不是才需要路由到index.phpif ($request_uri !~ ^/(html|static|favicon/.ico|robots/.txt|index/.php.*) ) {
                            rewrite ^/(.*)$ /index.php/$1 last;
                            break;
                    }