Manage and clean up duplicate WordPress posts with ease. Delete duplicates in bulk, assign 301 redirects, and generate .htaccess rules — all from one simple interface.
Features
- Detect duplicate posts by title and slug
- Display all duplicates in a table (with checkboxes)
- Per-post redirect options:
- Choose from other duplicates in a dropdown
- Enter a custom redirect URL manually
- Validate redirect targets before deleting
- Redirect deleted posts using 301 rules
- Save posts to trash, not permanent delete
- Generate
.htaccessrules for all redirects - Copy/paste or export redirects as needed
How to Use
- Go to Tools > Duplicate Post Manager
- Click Scan for Duplicates
- Review the table of duplicate posts
- For each post:
- Check the box to delete it
- Choose a redirect target (dropdown or custom URL)
- Click Delete Selected & Redirect
- Scroll down to copy or export your
.htaccessredirect rules
Redirect Format
The plugin generates Apache .htaccess rules like:
Redirect 301 /old-slug /new-slug
Redirect 301 /another-old /new-target
- All redirects use relative paths for portability.
- Only valid (non-404) redirects are saved.
Why Use It?
- Prevent SEO penalties from duplicate content
- Control user redirection after cleanup
- Maintain your site』s authority by preserving link equity
- Clean and update old auto-imported posts or legacy content
Technical Notes
- Uses WordPress core functions (
get_posts,get_permalink,wp_trash_post) - Compatible with Classic Editor and Block Editor (Gutenberg)
- Does not delete posts permanently
- Nonce-verified form for security
License
This plugin is licensed under the GPLv2 or later.
Coming Soon (Ideas)
- Export
.htaccessas a downloadable file - Custom post type support
- Integration with Redirection plugins
- Inline AJAX validation of manual URLs






