解决方法:在nginx的vhost配置文件中添加伪静态规则
location / { try_files $uri $uri/ /index.php?$args; } rewrite /wp-admin$ $scheme://$host$uri/ permanent;
来自:如何解决迁移Apache服务器至nginx后,Wordpress出现404的问题? – Brain1981的回答 – 知乎 https://www.zhihu.com/question/68267528/answer/261500849