因为SEO的需要,原固定链接/%post_id%.html已更新为/%postname%.html,即旧的文章数字链接改为文章名链接,(例如https://xiwangly.top/185.html改为了https://xiwangly.top/博客网站灾难备份恢复演练-灾难恢复计划.html,链接出现中文将被转换为URL编码),旧的链接将失效。

Nginx伪静态规则不变,如下:

location / {
	try_files $uri $uri/ /index.php?$args;
}
 
# Add trailing slash to */wp-admin requests.
rewrite /wp-admin$ $scheme://$host$uri/ permanent;