前言介紹
- 這款 WordPress 外掛「Backwards Compatible Permalinks」是 2019-03-10 上架。
- 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
- 上一次更新是 2019-03-11,距離現在已有 2246 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 4.8 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 5.6 以上。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
aprea |
外掛標籤
url | urls | permalink | permalinks |
內容簡介
倒序相容永久連結 (Backwards Compatible Permalinks) 是一款外掛,當更改永久連結結構時可協助防止 404 錯誤。
它透過追加一組倒序相容的文章重寫規則,實現此功能。這可以確保文章在永久連結結構更新後,仍然可以在其先前的永久連結上被訪問。
範例
假設您的永久連結結構設置為「年月和文章名稱」,並且您有一篇名為「我愛 WordPress」的文章。該文章會位於 https://example.com/2019/03/i-love-wordpress/ 位置。
但如果您想切換至「文章名稱」永久連結結構並將文章設在 https://example.com/i-love-wordpress/ 路徑下呢?
您可以這樣做,但結果是,訪問原始的文章永久連結時會回傳 404 錯誤。如果先前的 URL 被書籤或社交媒體分享,這將會造成問題。
安裝倒序相容永久連結後,您可以在舊的和新的永久連結結構上都訪問文章:
https://example.com/2019/03/i-love-wordpress/
https://example.com/i-love-wordpress/
注意事項
此外掛不具備過去相容性。也就是說,您必須在切換永久連結結構之前安裝並啟用此外掛,以便倒序相容性能夠運作。
目前僅支援標準文章。
因為永久連結結構正規表達式匹配之間的衝突,某些永久連結結構更新之間不支援倒序相容性。
倒序相容性僅提供給最近的永久連結結構更新。換句話說,您無法變更永久連結結構 3 次並跨越所有 3 種結構保持倒序相容性。
停用或解除安裝
在停用或解除安裝此外掛後,請確保您訪問 WordPress 後台的「設定 > 永久連結」以刷新您的重寫規則。
貢獻
我們歡迎您在GitHub上參與貢獻。
從 WordPress 內部安裝
造訪「外掛 > 新增外掛」。
搜尋「倒序相容永久連結」。
在外掛頁面啟用「倒序相容永久連結」。
手動安裝
將「backwards-compatible-permalinks」資料夾上傳至 /wp-content/plugins/ 目錄。
透過 WordPress 的「外掛」選單啟用「倒序相容永久連結」外掛。
原文外掛簡介
Backwards Compatible Permalinks helps prevent 404 errors when switching between permalink structures.
It achieves this by appending a set of backwards compatible post rewrite rules. This ensures posts are still accessible at their previous permalink after the permalink structure is updated.
Example
Let’s say your permalink structure is set to “Month and name” and you have a post titled “I Love WordPress.” That particular post would live at https://example.com/2019/03/i-love-wordpress/.
But what if you wanted to switch to the “Post name” permalink structure and have your post live at https://example.com/i-love-wordpress/ instead?
You could but this would result in the existing post permalink 404ing when visited. Which is problematic if the previous URL was bookmarked or shared on social media.
With Backwards Compatible Permalinks installed your post would be accessible at both the old and new permalink structures:
https://example.com/2019/03/i-love-wordpress/
https://example.com/i-love-wordpress/
Caveats
This plugin does not work retroactively. i.e. you must have the plugin installed and activated prior to switching permalink structures before backwards compatibility will work.
Currently only standard posts are supported.
Backwards compatibility is not supported between certain permalink structure updates. This is due to a clash between permalink structure regex matching.
Backwards compatibility is only provided between the most recent permalink structure update. i.e. you cannot change your permalink structure 3 times and have backwards compatibility across all 3 structures.
Deactivate or uninstall
After deactivating or uninstalling this plugin please ensure you visit Settings > Permalinks in the WordPress admin area to flush your rewrite rules.
Contributing
Contributions are welcomed on GitHub.
From within WordPress
Visit ‘Plugins > Add New’.
Search for ‘Backwards Compatible Permalinks’.
Activate Backwards Compatible Permalinks from your Plugins page.
Manually
Upload the backwards-compatible-permalinks folder to the /wp-content/plugins/ directory.
Activate the Backwards Compatible Permalinks plugin through the ‘Plugins’ menu in WordPress.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Backwards Compatible Permalinks」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
0.1.0 |
延伸相關外掛(你可能也想知道)
Velvet Blues Update URLs 》如果你把你的 WordPress 網站移到新的網域名稱,你會發現內部頁面連結和圖片參照沒有被更新,還是指向原本的舊網域名稱。這個外掛可以幫助你更改網站中的舊連...。
Go Live Update Urls 》一鍵更改網站網址, 這個外掛可以透過搜尋整個網站,把所有舊的網址取代成新的網址。這個功能通常用來更改網站網址。, 要獲得更多功能,如支援外掛建立的資料...。
List all URLs 》這個外掛將會在管理面板中新增一個頁面,顯示整個網站已發表 URL 的數字順序清單。, 那麼,這個功能為什麼會有幫助呢?, 首先,它可以讓您快速檢查您的網站 U...。
Make Paths Relative 》這個外掛程式可以將路徑(URL)轉換為相對路徑而非絕對路徑。這個外掛程式對於使用相對路徑特別有用。以下是這個外掛程式可以輕易轉換為相對路徑的永久連結和...。
Link Shortner 》連結縮短器可以幫助您產生短連結,並分享您網站內或外的任何網址。使用您自己的域名創建您想要的樣式的連結!。
List Urls 》這是一個輕量的外掛,它提供了一種將所有網站URL(永久鏈接)匯出到CSV的方式。非常有用的做網站清單。在「工具」>「列出URL」中可使用。, 這是非常早期的版...。
WP Permastructure 》此外,除了控制自訂文章類型的永久網址,此外掛還支援在您的永久網址結構中使用自訂分類。, 不僅如此,您還可以控制完整的永久網址,使文章類型別名不需要出...。
URL-Preview-Box 》此外掛可以將連結預覽框添加到您的文章中。, 預覽框會像在 Facebook 中那樣顯示!🙂, 此外掛免費提供最多 10 個 URL 預覽框的使用。, 或許您對 Facebook 很熟...。
Case Insensitive URL’s 》這個外掛會在每個頁面載入開始自動執行,以確保每個請求都以不分大小寫的方式處理。, 這個外掛會強制將 URL 中的所有大寫字母轉換為小寫。例如:/MyPage 會變...。
Cleverwise Redirect It 》一旦安裝了此外掛,您將能夠輕鬆管理所有網站重定向。實際上,此外掛沒有限制您可以管理的重定向數量。它可以處理從幾十個到數百萬個的重定向(但如果要管理...。
Go Live URL Update 》如果您將 WordPress 網站從本機端移至線上伺服器或更換新的網域名稱,您會發現內部頁面的連結和圖片的引用並未更新,仍指向本機端或舊的網域名稱。本外掛可幫...。
Display All in One URLs 》總結:, 「Display All in One URLs」是您個人網站的導航器,顯示所有文章、頁面和自訂內容型別的 URL 列表。, 問題與答案:, 1. 什麼是「Display All in One...。
ShortLink Analytics by SVS-Websoft 》這個外掛允許您:, – 創建類似於 http://yourdomain.com/7TDZ8nMEqg 的短網址, – 追蹤獨立訪客數據, – 追蹤點擊次數, – 透過瀏覽器...。
Tribulant Thumbshots 》透過短代碼和 URL 作為參數,將任何網站的快照快速插入到任何 WordPress 文章/頁面中。此外掛程式可以使用 Thumbshots.com 服務,而且可用於免費或付費帳戶。...。
Slug Control 》當你想出了一個好的文章標題,但 URL 別名卻有點匱乏,這不是很惱人嗎?例如你的標題是 Breaking: Yankees win 3-2 in extra innings. I'm excited & lit...。