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' 我需要幫助!