Change the default WordPress login URL (wp-login.php) to something custom. Lightweight, simple, and free from bloat.
- Contributors: ufukart
- Tags: login url, wp admin, change wp login, security, custom login
- Requires at least: WordPress 5.0
- Tested up to: WordPress 6.8
- Requires PHP: 7.4
- Stable tag: 1.0.0
- License: GPL-2.0+
- License URI: https://www.gnu.org/licenses/gpl-2.0.html
- Change the login URL from
wp-login.phpto a custom path. - Automatically redirect access attempts to the default login to 404 or home (your choice).
- Works with most themes and plugins.
- No performance hit — no JavaScript, no CSS, no extra HTTP requests.
- No .htaccess rewrite rules or database bloat.
- Go to
Settings → Permalinks - Scroll down to Secure WP Admin Login Settings
- Define your custom login slug (e.g.,
/my-secret-login) - Optionally define a redirect URL for unauthorized access attempts
⚠️ Important: Bookmark your new login URL. If you forget it, you will need to disable the plugin manually via FTP.
- Upload the plugin files to
/wp-content/plugins/secure-wp-admin-login - Activate the plugin from the Plugins menu in WordPress
- Go to
Settings → Permalinksto configure your custom login slug
Disable the plugin via FTP by renaming or deleting the plugin folder.
Alternatively, you can reset the secure_login_slug option directly from the database (e.g., via phpMyAdmin).
Yes. But you must select "NO" for the "Use a subdirectory for the default language" setting.
Yes, but each site in the network must configure its own login slug under its own Permalink settings.
No. These plugins override wp-admin routing, which conflicts with this plugin’s behavior.
- Forked from Change WP Admin Login v1.8 by Saad Iqbal
- Added nonce verification and input sanitization
- Implemented XSS and CSRF protection
- Improved PHP and WordPress compatibility
- Refactored code to follow PSR-4 and modern PHP standards
- Report issues or request features on GitHub
- Ask questions on the WordPress Support Forum
- Like the plugin? Leave a review
If you find this plugin useful, consider supporting its development:
👉 Donate via PayPal