WP Manifestindependent plugin directory
manifest / seo / post-redirect-manager

Post Redirect Manager

Manages post-level redirect relationships so when you rebuild a page with a new post ID, all traffic to the old post automatically 301-redirects to the replacement. Works with slug changes, drafts, and 404s. Automatically suggests redirects on slug reuse.

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/unculturedswine/post-redirect-manager/archive/refs/heads/main.zip
Updates itself. It ships its own updater, so new versions appear under Dashboard → Updates.

Site Index

Manages post-level redirect relationships so when you rebuild a page with a new post ID, all traffic to the old post automatically 301-redirects to the replacement. Works with slug changes, drafts, and 404s. Automatically suggests redirects on slug reuse.


Post Redirect Manager

Contributors: Kinda Useful Plugins Tags: redirect, 301, post, page, slug Requires at least: 5.0 Tested up to: 6.9 Stable tag: 1.1.0 Requires PHP: 7.4 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html

Manage post-level 301 redirects when rebuilding pages with new post IDs.

Description

Post Redirect Manager fills a gap left by traditional redirect plugins. While most redirect tools work with raw URLs, this plugin understands WordPress posts and pages. When you rebuild content with a new post ID, Post Redirect Manager creates a redirect relationship between the old and new post, ensuring all traffic follows.

The workflow it solves:

  1. You build a new page to replace an old one (new post ID)
  2. You set the old page to draft and change its slug
  3. You give the new page the old URL
  4. Post Redirect Manager ensures any remaining traffic to the old post ID or its historical slugs redirects to the new page

Features:

  • Post-to-post redirect relationships — Link a new post to the old post it replaces with a simple search box in the editor
  • Automatic 301 redirects — Requests that resolve to a replaced post are automatically 301-redirected to the replacement
  • 404 recovery — Catches 404s caused by drafted/trashed posts and redirects to the replacement if one exists
  • Historical slug matching — Works with WordPress old slug tracking to catch all historical URLs
  • Auto-suggest — Detects when a new post takes over an old post's slug and suggests setting up a redirect
  • Admin overview — View and manage all redirect relationships from Tools > Redirect Manager
  • Clean removal — Removing a relationship or deleting a post automatically cleans up all associated redirect data

Installation

  1. Upload the post-redirect-manager folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Edit any post or page and use the "Post Redirect Manager" meta box in the sidebar to set up a redirect relationship

Frequently Asked Questions

What post types does this work with?

Post Redirect Manager works with all public post types including posts, pages, and any custom post types registered as public.

How is this different from a regular redirect plugin?

Traditional redirect plugins map one URL to another. Post Redirect Manager maps one WordPress post to another, so it automatically handles slug changes, historical URLs, and draft status changes without manual URL management.

What happens if I delete one of the posts in a relationship?

If either post in a redirect relationship is permanently deleted, the plugin automatically removes the relationship and cleans up the associated meta data on the remaining post.

Can I set up a chain of redirects (A replaced by B replaced by C)?

Yes. The plugin follows redirect chains up to 5 hops to find the final published replacement.

Does this affect my site's performance?

The redirect check runs at the earliest opportunity during page load and uses efficient database queries. For 404 recovery, the plugin only queries the database when a 404 is already being served, so it adds no overhead to normal page loads.

Changelog

1.1.0

  • Search by post ID in the metabox search field
  • Improved search to reliably return drafts, private, and trashed posts
  • Redirect chain following (up to 5 hops)
  • Refactored helper methods and script enqueue
  • Added capability checks on individual posts

1.0.0

  • Initial release
  • Post-to-post redirect relationship metabox on all public post types
  • 301 redirect handling for replaced posts
  • 404 recovery with slug and old-slug matching
  • Admin list page under Tools > Redirect Manager
  • Auto-suggest when slug reuse is detected
  • Automatic cleanup on post deletion

License

This plugin is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This plugin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.