這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

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.

螢幕擷圖

  • The configuration screen.

安裝方式

Install the plugin and configure the redirections as needed in the MetaRedirect settings page: /wp-admin/admin.php?page=metaredirect_settings.

Note that the plugin is not enabled by default. Check the Enabled box in the settings page to turn it on.

General information about installing WordPress plugins can be found here

常見問題集

Is there a way to use multiple configurations?

Not at this time. The feature can be added to the roadmap if and when there’s a demand. Leave a note in the comments if this is one of your requirements.

Is it really free?

Yes, this plugin is completely free.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈MetaRedirect〉的開發相關工作。

參與者

將〈MetaRedirect〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0

  • Initial release.