更新时间:2023-02-24 09:56:15
您也可以尝试(不在位置限制中):
You can also try (not in a location block):
rewrite /wp-admin$ $scheme://$host$uri/ last;
rewrite ^/(wp-.*.php)$ /wp/$1 last;
rewrite ^/(wp-(content|admin|includes).*) /wp/$1 last;
将/wp/
替换为/site/
或任何您的wordpress目录.
Exchange /wp/
for /site/
or whatever your wordpress directory is.
来源: