[WordPress] 外掛分享: MetaRedirect

WordPress 外掛 MetaRedirect 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「MetaRedirect」是 2017-10-22 上架。 目前已經下架不再更新,不建議安裝使用。
  • 目前有 10 個安裝啟用數。
  • 上一次更新是 2020-12-27,距離現在已有 1589 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 4.5 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 5.4 以上。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

codecide |

外掛標籤

automation | redirection |

內容簡介

MetaRedirect 是一個輕量級的模組,允許任何文章被重定向到存放在自訂(meta)欄位中的 URL 位址。您可以在需要讓文章充當內部或外部其他網站的通道時使用 MetaRedirect。此外掛不會有任何副作用,並使用最少的資源。

可以在設定頁面中禁用此模組。重要提示:如果您未勾選「啟用」方塊,則此外掛將完全不起作用。

您可以配置 MetaRedirect 使用任何自訂欄位來保存目標 URL 的值。

可以設定重定向為永久 (301) 或暫時 (302)。使用前者設定,訪問您文章頁面的瀏覽器或搜尋引擎將會記住此重定向並在下一次訪問您的文章時自動執行。如果改用臨時重定向,這些客戶端將重新請求重定向。換言之,只有在您確定目標永遠不會更改時才使用永久 (301) 重定向。

還可以進一步配置重定向的觸發方式,可以是永久或臨時。永久觸發將自動強制執行重定向。臨時觸發僅會在所請求的 URL 中發現預設查詢參數 (參見下文) 時,才會執行重定向。例如,如果您將觸發參數設置為「jump」,則只有當文章的 URL 包含「?jump」時,才會執行重定向,否則不會發生任何事情。

觸發參數是用於觸發臨時重定向的字串(如上所述)。URL 參數出現在 URL 的問號 (「?」) 後面。儘管查詢參數通常由一對等號分隔的鍵/值對組成(例如,key=value),但 MetaRedirect 臨時觸發僅需要存在鍵(等號的左側),並將忽略任何相關聯的值。

最後,您可以設定重定向以附加自定義的 URL 參數到目標 URL。這些額外的參數需要是URL編碼的鍵/值對,這些參數將與原始 URL 無縫合併。

路線圖

重定向追踪報告
重定向文章列表頁面

捐贈

不需要。

原文外掛簡介

MetaRedirect is a lightweight module that allows any post to be redirected to a URL address stored in a custom (meta) field. You can use MetaRedirect in cases where your posts need to act as pass-through for other web destinations, either internal or external. This plugin does not have any side-effects and uses a minimal amount of resources.
The module can be disabled from the settings page. Important: If you leave the Enabled box unchecked, the plugin will have no effect at all.
You can configure MetaRedirect to use any custom field to hold the value of the target URL.
You can set up the redirection to either permanent (301), or temporary (302). Using the former setting, the client browsers or search engines that hit your post’s page will remember the redirection and perform it automatically the next time they visit your post. If you use a temporary redirection instead, those clients will request the redirection anew. In other words, only use Permanent (301) redirections if you are sure that the target will never change.
You can further configure the redirection’s trigger to be permanent or provisional. A permanent trigger will enforce the redirection automatically. A provisional trigger will only perform the redirection when a preset query parameter (see below) is found in the requested URL. For example, if you set the trigger parameter to jump, the post’s URL will be redirected if, and only if, it contains “?jump”, otherwise nothing will happen.
The trigger parameter is a string used to trigger provisional redirections (see above). URL parameters appear after the question mark (“?”) in the URL. Though query parameters typically consists of key/value pairs separated by an equal sign (e.g., key=value) the MetaRedirect provisional trigger only requires the key to be present (the left side of the =) and will ignore any associated value.
Finally, you can set the redirection to append custom URL parameters to the target These additional parameters need to be URL-encoded key/value pairs; the parameters will be merged with the original URL seamlessly.
Roadmap

Redirection tracking report
Redirected posts listing page

Donations
None needed.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「MetaRedirect」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


最新版本

延伸相關外掛(你可能也想知道)

文章
Filter
Apply Filters
Mastodon