wordpress固定链接 post_name post_id包含中文 404 Nginx not found
我们将固定链接设为postname或者postid后,或者是标签(tag)包含中文,分类目录包含中文,有时候会出现文章页无法打开的现象;
可以打开Nginx配置文件添加以下代码,再重启即可;
location / {
if (!-e $request_filename) {
rewrite (.*) /index.php;
}
}