[WordPress] 外掛分享: Postname Permalink Auto Redirect

首頁外掛目錄 › Postname Permalink Auto Redirect
WordPress 外掛 Postname Permalink Auto Redirect 的封面圖片
700+
安裝啟用
★★★★
4.6/5 分(16 則評價)
3235 天前
最後更新
問題解決
WordPress 2.9.0+ v1.1 上架:2015-10-14

內容簡介

改變永久連結結構但不想損失 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。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Postname Permalink Auto Redirect」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon