伪静态规则

rewrite


location ~ /[_0-9a-zA-Z-]+/wp-admin/$ {
rewrite ^/[_0-9a-zA-Z-]+/wp-admin/$ /wp-admin/ break;
}
location ~ /[_0-9a-zA-Z-]+/wp-([a-zA-Z-])*\.php {
rewrite ^/[_0-9a-zA-Z-]+/(.*\.php) /$1 last;
}
location ~ /[_0-9a-zA-Z-]+/wp-(admin|content|includes).* {
rewrite ^/[_0-9a-zA-Z-]+/(wp-(admin|content|includes).*) /$1;
}
location / {
if (-f $request_filename) {
break;
}
if (!-e $request_filename) {
rewrite . /index.php last;
}
}


1,110 Views