Just another contact form plugin. Simple but flexible.
About WP 404 Auto Redirect to Similar Post
WP 404 Auto Redirect to Similar Post is a plugin that automatically redirects 404 pages to similar posts based on title, post types, and taxonomies. If no similar posts are found, users can choose to redirect to the homepage or a custom URL. The plugin also includes features such as choosing the redirection HTTP header status, excluding post types and taxonomies from redirection, and displaying a debug console.Screenshots





Frequently asked questions
What does the WP 404 Auto Redirect to Similar Post plugin do?
This plugin automatically redirects 404 pages to similar posts based on Title, Post Types & Taxonomies. If nothing similar is found, visitors will be redirected to the homepage or a custom URL.
What are the features of the WP 404 Auto Redirect to Similar Post plugin?
The features of the plugin include automatically detecting any 404, automatically searching for a similar post based on multiple factors such as title, post type, and taxonomy, setting fallback behavior if nothing similar is found, choosing the redirection HTTP header status, excluding post types and taxonomies from possible redirections, excluding posts and terms based on custom meta, displaying the debug console instead of being redirected, and previewing possible redirection from the administration panel.
What are the new features of WP 404 Auto Redirect to Similar Post?
The new features include exposing 'WP-404-Auto-Redirect' headers on 404 pages, logging redirections in the /wp-content/debug.log file, creating custom search engines logic, and creating custom search engines groups & fire sequence.
What engines and groups are included in the default group of WP 404 Auto Redirect to Similar Post?
The default group includes 5 engines: Fix URL, Direct Match, Search Post, Search Term, and Search Post: Fallback.
Is WP 404 Auto Redirect to Similar Post compatible with other manual redirection plugins?
Yes, the plugin is 100% compatible with popular manual redirection plugins such as Redirection, Simple 301 Redirects, and Yoast Redirections.
Changelog
1.0.5
- Fix: Escaping URL in Debug Console
- General: Bumped WordPress version to 6.5
1.0.4
- Fix: Security issue
- Fix: Fallback & Preview inputs sanitization
- Improvement: Code formatting and comments
- Improvement: Readme typo, code example formatting and RankMath compatibility
- General: Bumped WordPress version to 6.4
1.0.3
- Improvement: Enhanced search algorithm & matching
1.0.2
- Fix: Request sanitization compatibility for nginx servers
1.0.1
- Fix: Priority exception when it equals 0
- Fix: Settings page link missing from plugins page
1.0
- Added: Log redirections in the /wp-content/debug.log file.
- Added: Expose ‘WP-404-Auto-Redirect’ headers on 404 pages. (Admin).
- Added: Groups & Engines Feature.
- Added: Groups & Engines Documentation & Examples (developers).
- Added: Groups & Engines Admin panel.
- Added: Index.php file redirecting to root domain (avoid plugin folder file listing).
- Added:
action('wp404arsp/search/init', $query) - Added:
filter('wp404arsp/search/group', $group, $query) - Added:
filter('wp404arsp/search/query', $query) - Added:
filter('wp404arsp/search/engine/{engine}', $result, $query, $group) - Added:
filter('wp404arsp/search/results', $query) - Added:
filter('wp404arsp/search/redirect', $redirect, $query) - Improvement: Core reworked from scratch for better extensibility.
- Removed: ‘Hooks’ tab
0.9.0.2
- Fix: Plugin priority set to 999 by debault
- Added: New Filter available
('wp404arsp/init', $init, $request_uri) - Added: Filters & Actions documentation
- Added: Hooks tab documentation in Administration panel
- Improvement: Plugin’s page description
- Removed: Unnecessary filter
('wp404arsp/settings', $settings)
0.9.0.1
- Fix: Paged request redirection “Uncaught Argument” error
0.9
- Fix: 302 headers option would not save
- Fix: Redirection loop in some specific cases – Direct match on private posts
- Fix: Ajax URL for custom
/wp-admin/path (Preview Mode) - Added: New Filter available
('wp404arsp/settings', $settings) - Added: New Filter available
('wp404arsp/redirect', $args, $settings) - Added: New Action available
('wp404arsp/after_redirect', $args, $settings) - Added: New page header ‘WP-404-Auto-Redirect: true’ on redirection
- Added: Exclude posts with the post meta:
wp404arsp_no_redirect = 1from possible redirections. - Added: Exclude terms with the term meta:
wp404arsp_no_redirect = 1from possible redirections. - Added: Exclude one or multiple taxonomies from possible redirections.
- Added: Disable Taxonomy Redirection – Never redirect to terms archives.
- Added: Plugin priority – Advanced users only (Default 999).
- Improvement: Revamped code
- Improvement: Administration panel with tabs
- Improvement: Plugin is now translation ready
0.7.7
- Fix: PHP header() error on upgrade
- Fix: Exclude Post Type from Redirections UI & Logic
- Fix: ‘Compatibility’ typo in description
- Added: 999 priority on template_redirect action for compatibility
- Improvement: Updated Plugin Screenshot
0.7.6
- Fix: Typos & added better descriptions
- Fix: minor PHP Notice
- Added: “Custom Redirect URL” as Fallback Behavior (Feature Request)
- Added: “Exclude Post Type” Multi-select to possible redirections (Feature Request)
- Improvement: Better overall request validation
0.7.2
- Added: Re-introduced Term search as fallback (if no similar post found)
- Improvement: Direct match algorythm
- Improvement: Sanitization of requests with an extension
- Improvement: Post_type matching to only search “active” post_types
0.7.1
- Fix: Bug while displaying legacy 404
- Fix: PHP notice on preview mode
- Improvement: Post Types handle
- Improvement: Paged request handle
0.7
- Added: Settings page
- Added: Debug mode for administrators (settings page)
- Added: Ability to disable “Redirect to Homepage” if nothing found (Feature request)
- Added: Ability to choose between 301 or 302 HTTP Headers
- Added: Ability preview URL Redirections
- Improvement: Reworked code
0.4.0.2
- Fix: Sanitization bug
- Fix: Debug typo
0.4
- Improvement: Revamped Code
- Improvement: Processing speed
- Improvement: Better Post Type / Category / Taxonomy matching
0.3.2
- Added: Debug monitoring
- Improvement: Better management of paged requests
0.3
- Initial Release
