location /
{
try_files $uri $uri/ /index.php?$args;
}
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
点击保存即可。
WordPress 更改固定链接后,出现无法访问的问题,需要在宝塔面板中对网站设置伪静态。点击网站->找到自己的网站->点击设置->伪静态。然后输入: