RationalRedirects
RationalRedirects
Description
RationalRedirects is a lightweight WordPress plugin for managing URL redirects. It supports exact path matching, regular expressions with capture groups, and automatically creates redirects when post/page slugs change.
Features:
- Simple Redirects – Redirect one URL to another with 301, 302, 307, or 410 status codes
- Regex Support – Use regular expressions with capture groups for flexible pattern matching
- Auto Slug Redirects – Automatically create redirects when you change a post or page URL slug
- Hit Counter – Track how many times each redirect is triggered
- Fast Performance – Database-indexed lookups and transient caching for regex patterns
- Import System – Import redirects from Yoast SEO Premium, Rank Math, All in One SEO, SEOPress, and Redirection
External Services
This plugin connects to the following external services:
RationalWP Plugin Directory
This plugin fetches a list of available RationalWP plugins from rationalwp.com to display in the WordPress admin menu. Only the menu file version number is sent as a cache-busting query parameter. No user data is transmitted. The response is cached locally for 24 hours.
- Service URL: https://rationalwp.com/plugins.json
- Terms of Service: https://rationalwp.com/terms/
- Privacy Policy: https://rationalwp.com/privacy/
Installation
- Upload the
rationalredirectsfolder to the/wp-content/plugins/directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- Go to RationalWP > Redirects to manage your redirects
Faq
Go to RationalWP > Redirects, enter the source path (e.g., /old-page), the destination URL, select a status code, and click “Add Redirect”.
Check the “Is Regex” box when creating a redirect. Use capture groups in your pattern and reference them in the destination with $1, $2, etc.
Example: Pattern /blog/(.*) with destination /news/$1 will redirect /blog/my-post to /news/my-post.
- 301 – Permanent redirect (recommended for SEO)
- 302 – Temporary redirect
- 307 – Temporary redirect (preserves request method)
- 410 – Gone (content permanently removed)
When enabled in settings, the plugin monitors changes to post and page URLs. When you change a slug, it automatically creates a 301 redirect from the old URL to the new one.
Yes! The Import tab supports importing from Yoast SEO Premium, Rank Math, All in One SEO, SEOPress, and Redirection.
Reviews
Changelog
1.0.2
- Tested up to WordPress 7.0.
1.0.1
- Fixing plugin URL
- Initial release
- Simple and regex redirect support
- Automatic slug change tracking
- Hit counter for redirects
- Import system for popular SEO plugins