wordpress 二级目录安装wordpress 根目录和二级目录多个存在伪静态设置

location /二级目录/ {
    if (-f $request_filename/index.html){
    rewrite (.*) $1/index.html break;
    }
    if (-f $request_filename/index.php){
    rewrite (.*) $1/index.php;
    }
    if (!-f $request_filename){
    rewrite (.*) /二级目录/index.php;
    }
    }