前言介紹
- 這款 WordPress 外掛「Postname Permalink Auto Redirect」是 2015-10-14 上架。
- 目前有 800 個安裝啟用數。
- 上一次更新是 2017-05-10,距離現在已有 2916 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 2.9.0 以上版本才可以安裝。
- 有 16 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
frontkom | fabioneves |
外掛標籤
link | links | post slug | post slugs | old post slugs |
內容簡介
改變永久連結結構但不想損失 SEO 嗎?你來對地方了!
只要文章仍使用相同的 slug,此外掛會自動重新導向舊的「%postname%」永久連結結構到新的結構。它會根據 URL 請求中的 slug 名稱來搜索文章,只要保持文章 slug 不變,就能找到文章並重新導向到新的永久連結結構。
例如:
假設你一開始使用「/%postname%/」作為永久連結結構,但是某段時間後你發現這樣並不好(事實就是如此!),於是你將其改為「/%category%/%postname%/」,舊的連結現在將會產生 404 錯誤訊息,因為連結已經不存在了。
以這個範例為例,你的網域是 http://my-cool-domain.com,且在「新聞」分類下有一個 slug 為「my-cool-post」的文章。使用舊的「/%postname%/」結構,你可以使用下列 URL 存取這篇文章:
http://my-cool-domain.com/my-cool-post/
但現在使用新的「/%category%/%postname%/」永久連結結構,這篇文章的 URL 將會是:
http://my-cool-domain.com/news/my-cool-post/
但是⋯⋯舊的 http://my-cool-domain.com/my-cool-post/ 現在產生了 404 錯誤訊息。
很好,使用「Postname Permalink Auto Redirect」掛進來拯救!此掛進會自動將 http://my-cool-domain.com/my-cool-post/ 重新導向到 http://my-cool-domain.com/news/my-cool-post/,你就不會損失 SEO,而且也能告訴搜索引擎這個頁面已經搬家了。
注意:
* 你必須保留舊的 postname slug,否則掛進不能依據舊的 URL 請求來找到文章。
* 此外掛支援 WPML。
原文外掛簡介
Changed the permalink structure and don’t want to lose your SEO? You’re in the right place!
This plugin will automatically redirect the old ‘%postname%’ permalink structure to the new one as long you keep the same slug in the posts. It works by searching posts by the slug name that comes in the request, so as long as you keep the post slug intact, it should be able to find the post and redirect to whatever new permalink it now is.
Eg.:
Let’s suppose you’re using ‘/%postname%/’ as your permalink structure, but after some time you find out it’s not a good structure (it’s not!) and you change it to ‘/%category%/%postname%/’, the old links will now generate a 404 page, because there’s nothing there anymore.
In this example your site is http://my-cool-domain.com and you have a post with the slug ‘my-cool-post’ under the category ‘news’. With the old ‘/%postname%/’ structure you would access this post with the URL:
http://my-cool-domain.com/my-cool-post/
With the new ‘/%category%/%postname%/’ structure the URL will now be:
http://my-cool-domain.com/news/my-cool-post/
But.. your old http://my-cool-domain.com/my-cool-post/ is now generating a 404.
Well, not anymore, “Postname Permalink Auto Redirect” to the rescue! The plugin will 301 redirect your http://my-cool-domain.com/my-cool-post/ to http://my-cool-domain.com/news/my-cool-post/ automatically. You won’t lose your SEO and you’ll also tell the search engines that your page moved somewhere else.
Notes:
* You should keep the old postname slugs, or the plugin will not be able to find the posts based old links request.
* This plugin supports WPML.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Postname Permalink Auto Redirect」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
暫無相關外掛推薦。