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

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 $$$

使用者評論

2018 年 12 月 3 日
No settings to configure. You just update your permalink structure and it just works. Brilliant.
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.
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.
2017 年 7 月 29 日
Installed, activated, changed premalink structure and that’s all! Great job, guys!
閱讀全部 16 則使用者評論

參與者及開發者

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

參與者

變更記錄

1.1

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

1.0

  • First public release.