Title: RationalRedirects
Author: rationalwp
Published: <strong>2026 年 3 月 6 日</strong>
Last modified: 2026 年 5 月 20 日

---

搜索插件

![](https://ps.w.org/rationalredirects/assets/banner-772x250.png?rev=3476577)

![](https://ps.w.org/rationalredirects/assets/icon-256x256.png?rev=3476577)

# RationalRedirects

 作者：[rationalwp](https://profiles.wordpress.org/rationalwp/)

[下载](https://downloads.wordpress.org/plugin/rationalredirects.1.0.2.zip)

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

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

## 描述

RationalRedirects is a lightweight WordPress plugin for managing URL redirects. 
It supports exact path matching, regular expressions with capture groups, and automatically
creates redirects when post/page slugs change.

**Features:**

 * **Simple Redirects** – Redirect one URL to another with 301, 302, 307, or 410
   status codes
 * **Regex Support** – Use regular expressions with capture groups for flexible 
   pattern matching
 * **Auto Slug Redirects** – Automatically create redirects when you change a post
   or page URL slug
 * **Hit Counter** – Track how many times each redirect is triggered
 * **Fast Performance** – Database-indexed lookups and transient caching for regex
   patterns
 * **Import System** – Import redirects from Yoast SEO Premium, Rank Math, All in
   One SEO, SEOPress, and Redirection

### External Services

This plugin connects to the following external services:

#### RationalWP Plugin Directory

This plugin fetches a list of available RationalWP plugins from [rationalwp.com](https://rationalwp.com/)
to display in the WordPress admin menu. Only the menu file version number is sent
as a cache-busting query parameter. No user data is transmitted. The response is
cached locally for 24 hours.

 * Service URL: [https://rationalwp.com/plugins.json](https://rationalwp.com/plugins.json)
 * Terms of Service: [https://rationalwp.com/terms/](https://rationalwp.com/terms/)
 * Privacy Policy: [https://rationalwp.com/privacy/](https://rationalwp.com/privacy/)

## 安装

 1. Upload the `rationalredirects` folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Go to RationalWP > Redirects to manage your redirects

## 常见问题

### How do I create a simple redirect?

Go to RationalWP > Redirects, enter the source path (e.g., `/old-page`), the destination
URL, select a status code, and click “Add Redirect”.

### How do I use regex redirects?

Check the “Is Regex” box when creating a redirect. Use capture groups in your pattern
and reference them in the destination with `$1`, `$2`, etc.

Example: Pattern `/blog/(.*)` with destination `/news/$1` will redirect `/blog/my-
post` to `/news/my-post`.

### What status codes are available?

 * **301** – Permanent redirect (recommended for SEO)
 * **302** – Temporary redirect
 * **307** – Temporary redirect (preserves request method)
 * **410** – Gone (content permanently removed)

### How do automatic slug redirects work?

When enabled in settings, the plugin monitors changes to post and page URLs. When
you change a slug, it automatically creates a 301 redirect from the old URL to the
new one.

### Can I import redirects from other plugins?

Yes! The Import tab supports importing from Yoast SEO Premium, Rank Math, All in
One SEO, SEOPress, and Redirection.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ rationalwp ](https://profiles.wordpress.org/rationalwp/)

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

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.2

 * Tested up to WordPress 7.0.

#### 1.0.1

 * Fixing plugin URL
 * Initial release
 * Simple and regex redirect support
 * Automatic slug change tracking
 * Hit counter for redirects
 * Import system for popular SEO plugins

## 额外信息

 *  版本 **1.0.2**
 *  最后更新：**2 周前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/rationalredirects/)
 * 标签
 * [301 redirect](https://cn.wordpress.org/plugins/tags/301-redirect/)[302 redirect](https://cn.wordpress.org/plugins/tags/302-redirect/)
   [redirect](https://cn.wordpress.org/plugins/tags/redirect/)[url redirect](https://cn.wordpress.org/plugins/tags/url-redirect/)
 *  [高级视图](https://cn.wordpress.org/plugins/rationalredirects/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

 *   [ rationalwp ](https://profiles.wordpress.org/rationalwp/)

## 支持

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

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