Title: Redirector
Author: Ralf Hortt
Published: <strong>2008 年 11 月 5 日</strong>
Last modified: 2014 年 8 月 11 日

---

搜索插件

![](https://ps.w.org/redirector/assets/banner-772x250.jpg?rev=481648)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/redirector_d7dad8.svg)

# Redirector

 作者：[Ralf Hortt](https://profiles.wordpress.org/horttcore/)

[下载](https://downloads.wordpress.org/plugin/redirector.3.0.1.zip)

 * [详情](https://cn.wordpress.org/plugins/redirector/#description)
 * [评价](https://cn.wordpress.org/plugins/redirector/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/redirector/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/redirector/#developers)

 [支持](https://wordpress.org/support/plugin/redirector/)

## 描述

Redirect posts, pages or any custom post type to a different url.

### Hooks

#### Actions

 * `redirector_uninstall` – Runs on plugin deinstall
 * `redirector_metabox_begin` – Begin redirector meta box
 * `redirector_metabox_end` – End redirector meta box
 * `redirector-modal-search-begin` Begin redirector modal
 * `redirector-modal-search-end` End redirector modal

#### Filters

 * `redirector-redirect-url` – Alter the query string that is appended to redirect
   url
 * `redirector-status-code` – Redirect status code; default 301
 * `redirector-recent-posts` – Alter redirector recent posts query
 * `redirector-search-query` – Alter redirector search query
 * `redirector-meta` – Alter Redirector meta save

#### Update Notice

In version 3+ I’ve changed the database handling of storing the post meta data.

This results in that you have the visit the backend once after updating the plugin.
The function maybe_update() will handle the transition from the old structure to
the newer one. There shouldn’t be any problem updating the plugin, if so please 
contact me!

## 屏幕截图

[⌊Meta box - No redirection⌉⌊Meta box - No redirection⌉[

Meta box – No redirection

[⌊Meta box - Select post ( any post type )⌉⌊Meta box - Select post ( any post type
)⌉[

Meta box – Select post ( any post type )

[⌊Modal box - Select post ( any post type ) with most recent posts⌉⌊Modal box - 
Select post ( any post type ) with most recent posts⌉[

Modal box – Select post ( any post type ) with most recent posts

[⌊Modal box - Search post ( any post type )⌉⌊Modal box - Search post ( any post 
type )⌉[

Modal box – Search post ( any post type )

[⌊Meta box - Selected post ( any post type )⌉⌊Meta box - Selected post ( any post
type )⌉[

Meta box – Selected post ( any post type )

[⌊Meta box - Custom URL⌉⌊Meta box - Custom URL⌉[

Meta box – Custom URL

[⌊Meta box - First child element⌉⌊Meta box - First child element⌉[

Meta box – First child element

[⌊Meta box - SSL⌉⌊Meta box - SSL⌉[

Meta box – SSL

## 安装

 * Put the plugin file in your plugin directory and activate it in your WP backend.
 * Go to edit a page
 * Scroll down to ‘Redirector’ meta box
 * Select a WordPress page of you installation or enter a valid URL or select the‘
   first child page’

## 常见问题

  Installation Instructions

 * Put the plugin file in your plugin directory and activate it in your WP backend.
 * Go to edit a page
 * Scroll down to ‘Redirector’ meta box
 * Select a WordPress page of you installation or enter a valid URL or select the‘
   first child page’

  Where can I get support or report bugs?

Please use the [github](https://github.com/Horttcore/Redirector) to report bugs 
or add feature requests!

  How can I activate Redirector for other post types beside pages?

Simple add the post type support for it via `add_post_type_support( 'post', 'redirector')`

## 评价

![](https://secure.gravatar.com/avatar/dc8b0513e3d011863437ac3c94b83bc695ae73fed05e9ae73842bf937611ccb2?
s=60&d=retro&r=g)

### 󠀁[2020, fresh WordPress, and still works!](https://wordpress.org/support/topic/2020-fresh-wordpress-and-still-works/)󠁿

 [comigo](https://profiles.wordpress.org/comigo/) 2020 年 2 月 4 日

It creates option sections in Gutenberg, which makes the plugin usable both for 
admins and customers.

![](https://secure.gravatar.com/avatar/a4374d7c1d6a424d184c76f7aa2a978d2daa3e0585befc4ab857589e556f8c84?
s=60&d=retro&r=g)

### 󠀁[Still works great with 4.7.4](https://wordpress.org/support/topic/still-works-great-with-4-7-4/)󠁿

 [MartinW2](https://profiles.wordpress.org/martinw2/) 2017 年 4 月 29 日

Thanks for this simple yet effective plugin!

![](https://secure.gravatar.com/avatar/f895dacd34ad5f7c3ede6f7f8a6c9527e2cda3a64eaacbf6330cc3eec22bb400?
s=60&d=retro&r=g)

### 󠀁[Works fine with 4.4.1](https://wordpress.org/support/topic/works-fine-with-441/)󠁿

 [annaemde](https://profiles.wordpress.org/annaemde/) 2016 年 9 月 3 日

Thank you very much!

![](https://secure.gravatar.com/avatar/2a0b2dbc4143700987d664a2ea7aa962d3120cc36145e46d48ad95fe0d7157be?
s=60&d=retro&r=g)

### 󠀁[Awesome](https://wordpress.org/support/topic/awesome-2745/)󠁿

 [Madovsky](https://profiles.wordpress.org/madovsky/) 2016 年 9 月 3 日

This plugin just save my life!

 [ 阅读所有7条评价 ](https://wordpress.org/support/plugin/redirector/reviews/)

## 贡献者及开发者

「Redirector」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Ralf Hortt ](https://profiles.wordpress.org/horttcore/)

「Redirector」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/redirector/contributors)
为本插件所做的贡献。

[帮助将「Redirector」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/redirector)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/redirector/)，查看[SVN仓库](https://plugins.svn.wordpress.org/redirector/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/redirector/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/redirector/)。

## 更新日志

#### 3.0.1

 * Fix: Checked checkbox for no redirection
 * Fix: Prevent empty redirects
 * Fix: Compability with Cachify

#### 3.0.0

 * Added: Search post object for post redirect type
 * Added: Redirect preview
 * Added action: `redirector-update`
 * Added action: `redirector-modal-search-begin`
 * Added action: `redirector-modal-search-end`
 * Added filter: `redirector-recent-posts`
 * Added filter: `redirector-redirect-url`
 * Added filter: `redirector-status-code`
 * Added filter: `redirector-meta`
 * Enhancement: New Redirector UI
 * Removed Filter: `redirector_redirect`
 * Removed Filter: `redirector_status`
 * Removed Filter: `redirector_types`

#### 2.0.3

 * Added more arguements to the hooks
 * Added README.md

#### 2.0.2

 * Filter ‘redirector_status’ added
 * Uninstall routine activated
 * Code readability increased

#### 2.0.1

 * Enhancement: Cleanup
 * Fix: Minor typos
 * Fix: Metabox is displayed correctly on new post

#### 2.0

 * Core function rewritten
 * Updated JS/CSS
 * Fully extendable with filters and actions
 * Custom Post Type Support
 * New redirect Method (HTTPS)
 * Moved files into folders

#### 1.2

 * Moved the code into class

#### 1.1

 * Proper multilanguage support
 * CSS moved to redirector.css
 * JS moved to redirector.js

…

## 额外信息

 *  版本 **3.0.1**
 *  最后更新：**9 年前**
 *  活跃安装数量 **7,000+**
 *  WordPress 版本 ** 3.3 或更高版本 **
 *  已测试的最高版本为 **3.6.1**
 *  语言
 * [English (US)](https://wordpress.org/plugins/redirector/) 和 [German](https://de.wordpress.org/plugins/redirector/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/redirector)
 * 标签
 * [page](https://cn.wordpress.org/plugins/tags/page/)[redirect](https://cn.wordpress.org/plugins/tags/redirect/)
 *  [高级视图](https://cn.wordpress.org/plugins/redirector/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  7 条 5 星评价     ](https://wordpress.org/support/plugin/redirector/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/redirector/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/redirector/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/redirector/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/redirector/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/redirector/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/redirector/reviews/)

## 贡献者

 *   [ Ralf Hortt ](https://profiles.wordpress.org/horttcore/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/redirector/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://www.horttcore.de)