WP Redirect Handler
WP Redirect Handler allows site administrators to create multiple redirect rules based on whether a user is logged in or logged out. This is perfect for redirecting logged-in users away from the login page or restricting specific pages to guests.
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/ormahbub/wp-redirect-handler/archive/refs/heads/main.zipWP Redirect Handler - WordPress Plugin
A lightweight WordPress plugin to manage conditional redirects based on user login status.
Description
WP Redirect Handler allows site administrators to create multiple redirect rules based on whether a user is logged in or logged out. This is perfect for redirecting logged-in users away from the login page or restricting specific pages to guests.
Author
- Mahbub
Features
- Multiple Redirects: Add and manage unlimited redirect rules.
- Conditional Logic: Trigger redirects based on "Logged In" or "Logged Out" status.
- Easy Configuration: Simple settings page using WordPress page slugs.
- Lightweight: Minimal impact on site performance.
Installation
- Download this repository as a
.zipfile. - In your WordPress Dashboard, go to Plugins > Add New > Upload Plugin.
- Upload the zip file and click Install Now.
- Activate the plugin.
Usage
- Navigate to Settings > Redirect Handler.
- Click Add New Rule.
- Enter the From (Page Slug) (e.g.,
login). - Enter the To (Full URL) (e.g.,
https://yourdomain.com/account/). - Select the condition and click Save Changes.
License: Free