[WordPress] 外掛分享: MetaRedirect

首頁外掛目錄 › MetaRedirect
WordPress 外掛 MetaRedirect 的封面圖片
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
10+
安裝啟用
尚無評分
1892 天前
最後更新
問題解決
WordPress 4.5+ PHP 5.4+ v1.0 上架:2017-10-22

內容簡介

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

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

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

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

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

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

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

路線圖

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

捐贈

不需要。

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「MetaRedirect」→ 直接安裝(推薦)

原文外掛簡介

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.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon