OpenTT Smart Redirect
A lightweight WordPress plugin that redirects all non-admin users to a selected page, ideal for maintenance or temporary site lockdowns.
by Aleksa Dimitrijević · github.com/tradicije/opentt-smart-redirect
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/tradicije/opentt-smart-redirect/archive/refs/heads/main.zipOpenTT Smart Redirect is a lightweight WordPress plugin that redirects all non-admin users to a selected page.
It is designed for simple maintenance mode, temporary site lockdowns, or controlled access scenarios.
The plugin is intentionally minimal and does one thing only: redirect visitors while allowing administrators to keep working normally.
Features
- Redirect all non-admin users to a selected page
- Administrators are never redirected
- Optional support for allowing subpages of the target page
- Automatically creates a default
/maintenancepage on activation - No external dependencies
- No front-end UI or styling assumptions
Use Cases
- Website maintenance mode
- Temporary site closure
- Event-based access control
- Content migration or restructuring phases
Installation
- Download the latest release from GitHub
- Upload the plugin folder to
wp-content/plugins/ - Activate OpenTT Smart Redirect from the WordPress admin panel
- Go to OpenTT Smart Redirect in the admin menu
- Enable redirect mode and select a target page
How It Works
When redirect mode is enabled:
- Logged-in administrators (
manage_options) can access the entire site normally - All other users are redirected to the selected page
- If enabled, subpages of the selected page are allowed
- All logic runs through
template_redirectwith minimal overhead
Philosophy
This plugin is intentionally simple.
It does not try to replace full maintenance-mode solutions, introduce visual overlays, or add unnecessary complexity.
It exists to solve a very specific problem in a predictable and transparent way.
License
AGPL-3.0
This ensures that improvements and hosted modifications remain free and accessible to the community.
Changelog
v1.4.1
- Inline CSS moved to a dedicated CSS file
v1.4
- Added role-based bypass control for redirect mode
- Administrators are always allowed to access the site
- Other roles can optionally be allowed via admin settings
v1.3
- Initial public release
- Basic redirect mode with admin bypass
- Automatic maintenance page creation
Author
Developed by Aleksa Dimitrijević
Part of the OpenTT project ecosystem.