Description
More than a redirect manager! Automatically update old URLs across posts, pages, tags and content to help prevent redirect chains.
Features:
- Automatic 301 redirects: Creates redirects when supported public post, page, category or tag slugs change.
- Dynamic destinations: Stores the associated post or term ID instead of a fixed destination URL.
- Redirect chain handling: Existing redirects resolve to the object’s current permalink after subsequent slug changes.
- Internal link updater: Updates old links in post content, excerpts, custom fields, page builder data (for example Elementor) and menu custom links.
- All link formats: Matches absolute links (http, https, with or without www), protocol-relative links, root-relative links such as
/old-slug/, JSON-escaped links and percent-encoded non-Latin slugs. - Child pages: When a parent page slug or parent changes, child page URLs get redirects and link updates too.
- Internal links only: Only links to your own site are changed. Links to other domains, including your URL used inside an external link, are never modified.
- Widgets and theme mods: Searches widget, theme mod and ACF options pages for old links.
- Detailed reports: Every slug change records which posts, custom fields and options were updated, how many links were replaced, plus errors and skipped content.
- History: Tools Slug Redirects History & Reports keeps previous reports (latest 500 by default).
- Bulk update: Tools Slug Redirects has a button to update links for all existing redirects.
- 404-based processing: Checks redirect records only on frontend 404 requests using GET or HEAD.
- Redirect management: View redirect records and their current destinations under Tools Slug Redirects.
- Manual deletion: Administrators can delete individual redirect records.
- Multisite support: Creates separate redirect tables for individual sites.
No settings required. Activate the plugin and it works automatically.
Privacy
This plugin does not collect or transmit personal information to external services.
It stores redirect information in the WordPress database, including the previous URL path, object ID, object type, taxonomy and creation date.
Installation
- Upload the
roodra-auto-slug-redirect-managerfolder to/wp-content/plugins/. - Activate the plugin from the WordPress Plugins screen.
- Change the slug of a published post, page, category or tag.
- Visit Tools Slug Redirects to view the generated redirect.
- Test the old URL in a browser to verify the redirect.
FAQ
-
Does the plugin automatically create 301 redirects?
-
Yes. When a supported public post, page, category or tag slug changes, the plugin stores the previous URL and the associated object ID.
-
What happens if I change a slug multiple times?
-
The plugin stores the object ID instead of a fixed destination URL. Existing redirect records therefore resolve to the object’s current permalink.
-
Does it update internal links?
-
Yes. When a slug changes, the plugin replaces links that point to the old URL in post content, excerpts, post meta (custom fields, Elementor data, menu custom links) and supported block data. Links are matched whether they are absolute, protocol-relative or root-relative.
Links that point to a child URL (for example /old-parent/child/) are only changed when that child page is itself handled as a child of the renamed parent.
Revisions are not modified. The database update does not execute normal WordPress post-update hooks, so use the
wpsr_internal_links_updatedaction to purge caches if needed. -
Can I update links for slugs I changed earlier?
-
Yes. Go to Tools Slug Redirects and click “Update internal links for all redirects”.
-
Can I turn off the custom field search?
-
Yes. Add
add_filter( 'wpsr_update_meta_links', '__return_false' );to your theme or a small plugin. Use thewpsr_excluded_meta_keysfilter to skip specific meta keys. -
Does it slow down my website?
-
Redirect lookups are performed only on frontend 404 requests for GET and HEAD methods. Normal successful page requests do not execute the redirect lookup.
-
What happens if I delete a post?
-
The corresponding redirect record is removed when a visitor requests its old URL and the plugin detects that the destination is unavailable.
-
Can I delete redirects manually?
-
Yes. Go to Tools Slug Redirects and use the Delete action.
-
Does it support custom post types?
-
It supports public custom post types that use published posts and have a permalink.
-
Does it support custom taxonomies?
-
It supports public taxonomies, including categories and tags.
-
Does it support WordPress Multisite?
-
Yes. It creates separate redirect tables for individual sites.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“Roodra Auto Slug Redirect Manager” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Roodra Auto Slug Redirect Manager” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.2.0
- Added detailed reports for every slug change: updated posts, custom fields and options, links replaced, errors and skipped content.
- Added History & Reports tab with report details and a Clear history button.
- Added link updates for widget_*, theme_mods_* and options_* options.
- Internal links only: the URL host is verified and external links (including this site’s URL inside an external link) are never changed.
- Added database error and regex error handling, with failures listed in the report.
- Added filters
wpsr_update_option_links,wpsr_option_prefixesandwpsr_history_limit. Thewpsr_internal_links_updatedaction now receives the full report. - Added a history database table (removed on uninstall).
- Plugin Check fixes: link searches now use fixed prepared queries, removed
suppress_filters, scoped coding-standard exclusions.
1.1.0
- Internal link updater now matches absolute, protocol-relative and root-relative links, http/https and www variants, JSON-escaped links and encoded non-Latin slugs.
- Added link updates for post meta, including Elementor data, serialized custom fields and menu custom links.
- Added redirects and link updates for child pages and child terms when a parent slug changes.
- Added redirects and link updates when a page parent changes.
- Revisions are no longer modified.
- Added admin notice showing how many items were updated.
- Added “Update internal links for all redirects” button.
- Added filters
wpsr_update_meta_linksandwpsr_excluded_meta_keys, and actionwpsr_internal_links_updated. - Fixed delete redirect action failing to redirect after deletion.
1.0.2
- Improved database queries using prepared table identifiers.
- Added targeted coding-standard exclusions for intentional custom database operations.
- Improved database migration and indexing.
- Removed unnecessary manual database operations where possible.
- Improved request URI sanitization.
- Fixed readme short description length.
- Improved uninstall variable naming.
- Improved multisite support.
1.0.1
- Improved database indexing.
- Improved URL normalization.
- Improved internal link replacement.
- Added multisite initialization.
- Fixed translation text domain consistency.
1.0.0
- Initial release.
- Automatic 301 redirects on supported slug changes.
- Dynamic redirect destinations.
- Internal link updates.
- Redirect management page.
