基本可以确定你用的CI框架
if (\$request_uri !~ ^/(html|static|favicon/.ico|robots/.txt|index/.php.*) ) {
rewrite ^/(.*)\$ /index.php/\$1 last;
break;
}
if (\$request_uri !~ ^/(html|static|favicon/.ico|robots/.txt|index/.php.*) ) {
rewrite ^/(.*)\$ /index.php/\$1 last;
break;
}
这个的意思是如果访问 html static等这些静态目录时直接返回,如果不是才需要路由到index.phpif ($request_uri !~ ^/(html|static|favicon/.ico|robots/.txt|index/.php.*) ) {
rewrite ^/(.*)$ /index.php/$1 last;
break;
}