このプラグインは WordPress の最新3回のメジャーリリースに対してテストされていません。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress で使用した場合は互換性の問題が発生する可能性があります。

Redirect Old Links

説明

Changing your link structure in WordPress can lead to all of your old links breaking and returning a “404”. But no more! If someone goes to an old link for your site, I’ll find the new link and redirect them there automatically.

No configuration. No one-by-one setting of the new link structures. No wrestling with complicated regex patterns. Just install me and relax.

Redirect 404s works with posts, pages, and custom post types (like ecommerce products).

  • Note – the plugin only works for permalink structures where the last “chunk” of the URL is the post name (also called the slug).

インストール

  1. Upload the plugin folder to your /wp-content/plugins/ directory
  2. Activate the plugin through the Plugins menu
  3. Done!

FAQ

How do I configure the plugin?

No configuration necessary! I automatically tests all 404 links to see if they might resolve to an existing post. If I find a post that matches, I’ll just redirect the visitor to that post.

How do you know when a post matches?

I take the last “chunk” of the URL and assume it’s a post name. Then I search for any posts with that name. If I find one, I redirect the user to the post I found. Since I use this method, I won’t work for all permalink structures. But the vast majority end in the post name, so I’ll work just fine on most sites.

Examples:
* /2017/02/this-is-the-last-chunk/
* /announcements/this-is-the-last-chunk/

Do you work with custom post types like ecommerce products?

Sure do! I’ll search all public post types for the post name to see if I find one.

評価

2017年3月26日
I was looking for about 3 hours for a plugin, which can redirect all sites if you change the permalinks structure in WordPress. After 5 plugins I almost gave up, because none of them worked if you have another direction of your WordPress installation or if you have a multi lingual blog (permalinks with /de/ or /en/). But with this plugin everything works! And I haven’t configured anything… just installed it and it worked! It’s just amazing!
1件のレビューをすべて表示

貢献者と開発者

Redirect Old Links はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“Redirect Old Links” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

  • 1.0.0 Initial release to wordpress.org repository
  • 0.2 Update the query to search for all post names, instead of just matching off of get_page_by_path()
  • 0.1 Initial release