Conditional Role Based Redirect Manager

Readme.txt
=== Conditional Role Based Redirect Manager ===
Contributors: wpconsults - Abdullah Nouman
Tags: redirect, role based redirect, user roles, login redirect, access control
Requires at least: 5.5
Tested up to: 6.9
Requires PHP: 7.2
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Conditional Role Based Redirect allows administrators to create flexible redirect rules based on user login status and roles.
== Description ==
Conditional Role Based Redirect Manager is a lightweight yet powerful WordPress plugin that lets you control how visitors are redirected across your site based on their authentication status and user roles.
With an intuitive interface located under the Tools menu, site administrators can easily manage redirect rules for logged-in users, logged-out users, or all visitors. The plugin is designed to be extensible, making it ideal for growing websites that require advanced redirect logic.
Perfect for membership sites, gated content, client portals, and role-specific experiences.
Developed by:
Author: Abdullah Nouman
Company: WpConsults LLC
Website: https://www.wpconsults.com
== Core Features ==
- Create redirect rules based on user status:
- Logged-in users
- Logged-out users
- Everyone (all visitors)
- Target specific user roles:
- Administrator
- Editor
- Author
- Contributor
- Subscriber
- Custom roles supported
- Role-based exceptions:
- Exclude selected roles from a redirect rule
- Redirect management:
- Add new redirect rules
- Edit existing redirects
- Delete redirects
- Admin UI accessible under Tools → Role Based Redirect Manager
- Clean and performance-friendly execution using WordPress hooks
== Use Cases ==
- Redirect logged-out users/Loggedin Users/Guest Users to a certain page when click on specific link/button
- Prevent non-admins from accessing specific URLs
- Create role-specific landing pages
- Control site access without editing theme or core files
== Installation ==
- Upload the
role-based-redirect-managerfolder to the/wp-content/plugins/directory. - Activate the plugin through the Plugins menu in WordPress.
- Navigate to Tools → ⇄ Redirect Manager.
- Add your redirect rules as needed.
== Frequently Asked Questions ==
= Does this plugin support custom user roles? =
Yes. Any custom roles registered on your site will appear in the role selection options.
= Can I exclude specific roles from a redirect? =
Yes. You can define role-based exceptions so selected roles are not affected by a redirect rule.
= Does this plugin support 301 or 302 redirects? =
Currently, redirects use a default method. Support for choosing between 301 (Permanent) and 302 (Temporary) redirects is planned for a future release.
= Is this plugin multisite compatible? =
Multisite compatibility is planned for a future update.
== Screenshots ==
- screenshot-1.png
- screenshot-2.png
- screenshot-3.png
== Future Enhancements ==
Planned features include:
- Import and export redirect rules
- Choose redirect type (301 or 302)
- Country-based redirects
- Multisite compatibility
- Redirect scheduling (start and end date/time)
- Device-based redirects (mobile/desktop)
- Referrer-based redirects
- Redirects based on query parameters or custom fields
- Priority ordering for multiple redirect rules
- Logging and analytics for redirect tracking
== Changelog ==
= 1.0.0 =
- Initial release
- Role-based redirect rules
- Logged-in, logged-out, and global redirects
- Role exclusion support
- Admin interface under Tools menu
== Upgrade Notice ==
= 1.0.0 =
Initial stable release.
== License ==
This plugin is licensed under the GPLv2 or later.
You are free to modify and redistribute it under the same license terms.
