https://github.com/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.
https://github.com/kandekore/advanced-duplicate-post-manager-main
301 301-redirect 301-redirects admon csv duplicates htaccess media redirect seo slug wordpress
Last synced: 2 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/kandekore/advanced-duplicate-post-manager-main
- Owner: kandekore
- Created: 2025-08-05T09:59:10.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-08-05T10:04:34.000Z (12 months ago)
- Last Synced: 2025-08-05T12:08:21.232Z (12 months ago)
- Topics: 301, 301-redirect, 301-redirects, admon, csv, duplicates, htaccess, media, redirect, seo, slug, wordpress
- Language: PHP
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# 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 `.htaccess` redirect rules
- β
View and download `.htaccess` from the admin panel
- β
One-click **backup** and **restore** for `.htaccess`
- β
Automatically generate **CSV export** of detected duplicates
- β
Compatible with PHP 8.1+
---
## π₯ Installation
1. Upload the plugin folder to `/wp-content/plugins/`
2. Activate the plugin via **Plugins > Installed Plugins**
3. 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 `.htaccess` output
---
## π .htaccess Management
Go to **Tools > .htaccess Manager** to:
- View generated redirect rules
- Write them directly into your real `.htaccess` file
- Clear all stored redirects
- Download `.htaccess` backup
---
## πΎ .htaccess Backup/Restore
Go to **Tools > .htaccess Backups** to:
- One-click backup your current `.htaccess` to `/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 `.htaccess`** before 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](https://www.gnu.org/licenses/gpl-2.0.html).
---
## π€ Author
[Darren Kandekore](https://github.com/dkandekore)
Built with care to keep your WordPress content clean, SEO-friendly, and efficient.