Nginx的帮助WordPress的自定义永久链接重写问题。Nginx的帮助WordPress的自定义永久链接重写
测试地点:http://unknown/blog/ 帖子链接:http://unknown/blog/archives/2604.html(404错误)
我的永久链接设置为 '/archives/%post_id%.html'
的index.php的$ args?参数不是'.html'的认可。
location /blog/ {
try_files $uri $uri/ /blog/index.php?$args;
}
的$ args 是可能的 '/档案/%POST_ID%' 是不可能的 '/archives/%post_id%.html'
我所有的帖子链接 '的.html' 我需要帮助!