問題描述

我已經閱讀了關於 wp 駭客郵件列表,這個論壇和 Google 周圍的不同固定連結的表現的討論。

但是,如果我過去幾年一直使用的永久連結結構是否好,那麼我不能真的推斷:

/%postname%-%year%%monthnum%%day%.html

這種組合在//年,月,日組合之後直接使用 postname,因為許多 postnames 都帶有相同的名稱。這個 HTML 新增是我在部落格 (甚至 pre wordpress) 上過去 10 年來一直使用的東西,這是遺產。

我不知道這是否有助於表現或者表現不好,我該怎麼檢查?

(我已經執行了+10 年的部落格,有大約 10.000 個帖子,許多連結)

連結:

  1. http://codex.wordpress.org/Using_Permalinks

  2. http://www.google.com/search?q=wordpress+category+permalink+performance

  3. http://ottopress.com/2010/category-in-permalinks-considered-harmful/

  4. http://lists.automattic.com/pipermail/wp-hackers/2010-October/035458.html

最佳解決方案

您可以透過檢視資料庫中 rewrite_rules 選項的大小進行檢查。如果它很小 (我認為應該使用這個結構),你不會使用詳細的規則。相比之下,如果每個靜態頁面看到幾行,則使用詳細的規則,這不是很好。

參考文獻

注:本文內容整合自 Google/Baidu/Bing 輔助翻譯的英文資料結果。如果您對結果不滿意,可以加入我們改善翻譯效果:薇曉朵技術論壇。