pdirl的NGINX伪静态

in ubuntuLinuxDebianCentos with 0 comment

if ($uri !~ "/$"){
set $rule_0 1$rule_0;
}
if (!-f $request_filename){
set $rule_0 2$rule_0;
}
if (-d $request_filename){
set $rule_0 3$rule_0;
}
if ($rule_0 = "321"){
rewrite ^/(.) /$uri/ permanent;
break;
}
if (-d $request_filename){
set $rule_1 1$rule_1;
}
if (!-f $request_filename){
set $rule_1 2$rule_1;
}
if ($rule_1 = "21"){
rewrite ^/(.
)$ /index.php?$args&directory=$1&modrewrite=1 last;
}

粤ICP备15078260号-3