Title: Postname Permalink Auto Redirect
Author: fabioneves
Published: <strong>2015 年 10 月 15 日</strong>
Last modified: 2017 年 5 月 10 日

---

搜索插件

![](https://ps.w.org/postname-permalink-auto-redirect/assets/banner-772x250.png?
rev=1266520)

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

![](https://ps.w.org/postname-permalink-auto-redirect/assets/icon-256x256.png?rev
=1266520)

# Postname Permalink Auto Redirect

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

[下载](https://downloads.wordpress.org/plugin/postname-permalink-auto-redirect.1.1.zip)

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

 [支持](https://wordpress.org/support/plugin/postname-permalink-auto-redirect/)

## 描述

Changed the permalink structure and don’t want to lose your SEO? You’re in the right
place!

This plugin will automatically redirect the old ‘%postname%’ permalink structure
to the new one as long you keep the same slug in the posts. It works by searching
posts by the slug name that comes in the request, so as long as you keep the post
slug intact, it should be able to find the post and redirect to whatever new permalink
it now is.

Eg.:
 Let’s suppose you’re using ‘/%postname%/’ as your permalink structure, but
after some time you find out it’s not a good structure (it’s not!) and you change
it to ‘/%category%/%postname%/’, the old links will now generate a 404 page, because
there’s nothing there anymore.

In this example your site is http://my-cool-domain.com and you have a post with 
the slug ‘my-cool-post’ under the category ‘news’. With the old ‘/%postname%/’ structure
you would access this post with the URL:
 http://my-cool-domain.com/my-cool-post/

With the new ‘/%category%/%postname%/’ structure the URL will now be:
 http://my-
cool-domain.com/news/my-cool-post/

But.. your old http://my-cool-domain.com/my-cool-post/ is now generating a 404.

Well, not anymore, “Postname Permalink Auto Redirect” to the rescue! The plugin 
will 301 redirect your http://my-cool-domain.com/my-cool-post/ to http://my-cool-
domain.com/news/my-cool-post/ automatically. You won’t lose your SEO and you’ll 
also tell the search engines that your page moved somewhere else.

Notes:
 * You should keep the old postname slugs, or the plugin will not be able
to find the posts based old links request. * This plugin supports WPML.

## 安装

 1. Upload `postname-permalink-auto-redirect` directory to `/wp-content/plugins/`
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Profit $$$

## 常见问题

  Installation Instructions

 1. Upload `postname-permalink-auto-redirect` directory to `/wp-content/plugins/`
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Profit $$$

## 评价

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

### 󠀁[Just works](https://wordpress.org/support/topic/just-works-468/)󠁿

 [jaredlt](https://profiles.wordpress.org/jaredlt/) 2018 年 12 月 3 日

No settings to configure. You just update your permalink structure and it just works.
Brilliant.

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

### 󠀁[Job Done you are a genius](https://wordpress.org/support/topic/job-done-you-are-a-genius/)󠁿

 [devo25](https://profiles.wordpress.org/devo25/) 2018 年 3 月 23 日

This is perfect plugin to reslove all issues when it comes to change permalink from%
postname% to /%category%/%postname%/ this is the right plugin to use.

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

### 󠀁[This plugin was a lifesaver, but it doesn’t seem to be working anymore.](https://wordpress.org/support/topic/this-plugin-was-a-lifesaver-but-it-doesnt-seem-to-be-working-anymore/)󠁿

 [lanclet11](https://profiles.wordpress.org/lanclet11/) 2017 年 11 月 8 日

I would like to say this is working, but it isn’t for me anymore. I used to backdate
posts to 2013 to test them without them showing up on the homepage, but now when
I change the date it doesn’t redirect the way it used to, it used to easily redirect
from the 2017 to 2013 url and vise versa, but no more… please help! Example: http://
url/2017/07/example-page > http://url/2013/07/example-page used to automatically
redirect when I made date changes, now I get 404’s again… sad panda 🙁 I’m using
WordPress 4.7.3 right now and it’s not working, when I have time to update the website
to 4.8 I’ll be back with an update. Update: November 7th, 2017 – I have tested this
plugin on multiple websites now and it flat out doesn’t work. I have to update my
review to 1 star.

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

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

 [avmaksimov](https://profiles.wordpress.org/avmaksimov/) 2017 年 7 月 29 日

Installed, activated, changed premalink structure and that’s all! Great job, guys!

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

### 󠀁[Works great… but…](https://wordpress.org/support/topic/creates-a-lot-of-404/)󠁿

 [Jeffinho2016](https://profiles.wordpress.org/jeffinho2016/) 2017 年 4 月 2 日 
1 回复

Works great for standard pages but doesn’t redirect AMP pages

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

### 󠀁[Works Perfect!](https://wordpress.org/support/topic/works-perfect-397/)󠁿

 [acbrent25](https://profiles.wordpress.org/acbrent25/) 2016 年 12 月 30 日 1 回复

Just activate and it’s good to go!

 [ 阅读所有16条评价 ](https://wordpress.org/support/plugin/postname-permalink-auto-redirect/reviews/)

## 贡献者及开发者

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

贡献者

 *   [ fabioneves ](https://profiles.wordpress.org/fabioneves/)
 *   [ Frontkom ](https://profiles.wordpress.org/frontkom/)

[帮助将「Postname Permalink Auto Redirect」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/postname-permalink-auto-redirect)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.1

 * Added AMP support
 * Fixed a PHP notice when not using WPML plugin

#### 1.0

 * First public release.

## 额外信息

 *  版本 **1.1**
 *  最后更新：**9 年前**
 *  活跃安装数量 **700+**
 *  WordPress 版本 ** 2.9.0 或更高版本 **
 *  已测试的最高版本为 **4.7.33**
 *  语言
 * [English (US)](https://wordpress.org/plugins/postname-permalink-auto-redirect/)
 * 标签
 * [link](https://cn.wordpress.org/plugins/tags/link/)[links](https://cn.wordpress.org/plugins/tags/links/)
   [post slug](https://cn.wordpress.org/plugins/tags/post-slug/)
 *  [高级视图](https://cn.wordpress.org/plugins/postname-permalink-auto-redirect/advanced/)

## 评级

 4.6 星（最高 5 星）。

 *  [  14 条 5 星评价     ](https://wordpress.org/support/plugin/postname-permalink-auto-redirect/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/postname-permalink-auto-redirect/reviews/?filter=4)
 *  [  1 条 3 星评价     ](https://wordpress.org/support/plugin/postname-permalink-auto-redirect/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/postname-permalink-auto-redirect/reviews/?filter=2)
 *  [  1 条 1 星评价     ](https://wordpress.org/support/plugin/postname-permalink-auto-redirect/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/postname-permalink-auto-redirect/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/postname-permalink-auto-redirect/reviews/)

## 贡献者

 *   [ fabioneves ](https://profiles.wordpress.org/fabioneves/)
 *   [ Frontkom ](https://profiles.wordpress.org/frontkom/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/postname-permalink-auto-redirect/)