About this plugin
- 301, 302, 307, 308, 410 and 451 responses.
- Exact, wildcard ( /blog/* → /news/$1 ) and regex ( ^/p/(\d+)$ → /post-$1 ) matching.
- Query strategies: ignore, exact match (order-insensitive) or pass-through.
- Runs on init before the main query; object-cache aware (zero SQL on hot paths with Redis/Memcached).
- Loop protection: self-references, A → B → A chains and chains longer than 10 hops are never executed.
- Automatic 301s when a published post/page URL changes (including wildcard rules for child pages).
- 404 log with hit aggregation, GDPR-friendly IP anonymisation, bot filter and retention purge.
- One-click “Convert to redirect” from the 404 log.
- CSV import/export (comma, semicolon or tab; Excel-safe).
Admin: Tools → Redirect Manager.
Theme templates
php in your theme to render a custom page for those status codes.
Developer hooks
Filters: sm_redirect_manager_engine_priority, sm_redirect_manager_allowed_methods, sm_redirect_manager_should_redirect,
sm_redirect_manager_match_result, sm_redirect_manager_redirect_location, sm_redirect_manager_track_slug_change, sm_redirect_manager_log_404,
sm_redirect_manager_client_ip, sm_redirect_manager_csv_max_rows, sm_redirect_manager_csv_max_bytes.
Actions: sm_redirect_manager_booted, sm_redirect_manager_loop_detected, sm_redirect_manager_deliver_status, sm_redirect_manager_slug_redirect_saved,
sm_redirect_manager_404_converted, sm_redirect_manager_csv_imported.