Smart Maintenance Redirect Manager By Müller - Redirect Manager and scheduled maintenance
WordPress plugin for maintenance mode with custom redirect and slug-based exception control.
by Leo Muller Luiz · github.com/leomullerluiz/smart-maintenance-redirect · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/leomullerluiz/smart-maintenance-redirect/archive/refs/heads/main.zipWordPress plugin for maintenance mode with custom redirect and slug-based exception control.
Download
Features
✨ Main Features:
- ✅ Enable/disable maintenance mode with one click
- ✅ Configure custom redirect URL
- ✅ Define specific slugs that remain accessible (exceptions)
- ✅ Logged-in users continue with full site access
- ✅ HTTP 307 (temporary) redirect
- ✅ User-friendly admin panel interface
- ✅ Protection against redirect loops
Installation
- Upload the
smart-maintenance-redirectfolder to the/wp-content/plugins/directory - Activate the plugin through the 'Plugins' menu in WordPress
- Go to Settings > Smart Maintenance to configure
Usage
Basic Configuration
- Go to Settings > Smart Maintenance
- Check the "Enable maintenance mode" option
- Enter the redirect URL (e.g.,
https://yoursite.com/under-maintenance) - Click Save Settings
Configuring Exceptions (Allowed Slugs)
If you want some pages to remain accessible, add the slugs in the "Allowed Slugs" field, one per line:
contact
about-us
api/webhook
privacy-policy
Important:
- Slugs must be entered without leading slashes
- One slug per line
- Non-logged-in users will be able to access these pages normally
How It Works
For Non-Logged-In Users
- When accessing any site URL → they are redirected to the configured URL
- Exception: URLs matching allowed slugs remain accessible
For Logged-In Users
- Full site access, no redirects
- Can work normally in WordPress
For Administrators
- Full access to the admin panel
- Can enable/disable maintenance mode at any time
Usage Examples
Example 1: Total Maintenance
✅ Mode enabled
📍 URL: https://example.com/maintenance
📋 Allowed slugs: (empty)
Result: All non-logged-in visitors go to /maintenance
Example 2: Maintenance with Exceptions
✅ Mode enabled
📍 URL: https://example.com/maintenance
📋 Allowed slugs:
contact
about
Result:
- /any-page → redirects to /maintenance
- /contact → accessible normally
- /about → accessible normally
Technical Details
- Minimum WordPress version: 5.0
- Required PHP version: 7.0+
- Redirect type: HTTP 307 (Temporary Redirect)
- Hook used:
template_redirect - Priority: Default
Security
- ✅ Sanitization of all input data
- ✅ URL validation
- ✅ Protection against direct file access
- ✅ User capability verification
- ✅ Data output escaping
Uninstallation
When deactivating the plugin:
- Maintenance mode is automatically disabled
- Settings are kept in the database
To remove completely:
- Deactivate the plugin
- Delete the plugin
- (Optional) Manually remove the
mmr_settingsoption from the database
Support
To report bugs or request features, open an issue on the GitHub repository.
License
GPL v2 or later
Author
Leo Muller Luiz
Support Development
If you find this plugin useful, consider supporting its development:
Bitcoin (BTC): bitcoin:BC1QARLA6QMAD2RGQSRMEWYLT067YGF6FLWGN57P9Q
Bitcoin Lightning: craftyappeal00@walletofsatoshi.com
Note: This plugin is provided "as is", without warranties of any kind.