kandekore/advanced-duplicate-post-manager-main
A powerful tool for WordPress administrators to detect and manage duplicate content across posts, pages, categories, media, and custom post types. Assign 301 redirects, clean up media, and manage .htaccess rules from a user-friendly interface.
Advanced Duplicate Post Manager
Contributors: Darren Kandekore
Tags: duplicates, redirect, media, htaccess, slug, CSV, SEO, admin
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.4
Stable tag: 3.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
A powerful tool for WordPress administrators to detect and manage duplicate content across posts, pages, categories, media, and custom post types. Assign 301 redirects, clean up media, and manage .htaccess rules from a user-friendly interface.
π§ Features
- β Detect duplicates by title and slug
- β
Works with:
- Posts
- Pages
- Custom Post Types
- Categories
- Media (by filename and file size)
- β Bulk delete duplicate entries
- β Assign per-item 301 redirects
- β
Generate and manage
.htaccessredirect rules - β
View and download
.htaccessfrom the admin panel - β
One-click backup and restore for
.htaccess - β Automatically generate CSV export of detected duplicates
- β Compatible with PHP 8.1+
π₯ Installation
- Upload the plugin folder to
/wp-content/plugins/ - Activate the plugin via Plugins > Installed Plugins
- Go to Tools > Duplicate Post Manager
π How to Use
π Step 1: Scan for Duplicates
- Navigate to Tools > Duplicate Post Manager
- Select a content type:
- Posts, Pages, Custom Post Types
- Media Library
- Categories
- Click Scan for Duplicates
β Step 2: Review and Select Duplicates
- Duplicates will appear in a table
- For each:
- Check the box to delete
- (Posts/Pages only) Choose a redirect target:
- Select from other duplicates
- Or enter a manual URL
β οΈ Media and categories are delete-only β no redirects.
ποΈ Step 3: Process
- Click Delete Selected & Redirect
- Posts will be sent to trash
- Redirects will be saved and added to
.htaccessoutput
π .htaccess Management
Go to Tools > .htaccess Manager to:
- View generated redirect rules
- Write them directly into your real
.htaccessfile - Clear all stored redirects
- Download
.htaccessbackup
πΎ .htaccess Backup/Restore
Go to Tools > .htaccess Backups to:
- One-click backup your current
.htaccessto/uploads/htaccess-backups/ - Restore the last backup anytime
π₯ CSV Export
- Each time you scan, a CSV file is saved to
/wp-content/uploads/advanced-duplicate-posts.csv - After scanning, a Download Duplicates CSV button will appear
- Useful for keeping audit logs or pre-approval before deletion
π Best Practices
- π Always back up
.htaccessbefore writing changes - π Only assign redirects to valid, working URLs
- β Let the plugin check for 404s β it wonβt save invalid redirects
- π§Ή Delete media duplicates with caution β this cannot be undone
- π§ͺ Test in staging before cleaning large content batches
π§ Why Use This Plugin?
- Prevent SEO penalties from duplicate content
- Safely redirect deleted pages instead of serving 404s
- Keep your database and media library lean and organized
- Avoid slug collisions and orphaned content
- Maintain editorial and audit control with CSV logs
πΌ Use Cases
- Bulk-imported WordPress sites with many auto-generated posts
- Migrated content from older CMSs
- eCommerce or directory sites with repeated titles or categories
- Media-heavy sites needing cleanup of duplicate images
β FAQ
Q: Can I use this for WooCommerce products?
A: Yes! Products are a custom post type. Just select them from the dropdown.
Q: Are deleted posts permanently removed?
A: No β posts/pages are moved to trash. Media is permanently deleted.
Q: Does it affect SEO?
A: In a good way! 301 redirects preserve SEO value by avoiding 404s.
π§© Roadmap / Ideas
- Automatic scheduled duplicate scans
- Email CSV audit reports to admins
- WooCommerce product image deduplication
- Integration with Redirection plugin and Rank Math
π License
This plugin is licensed under the GPLv2 or later.
π€ Author
Darren Kandekore
Built with care to keep your WordPress content clean, SEO-friendly, and efficient.