Forgot Your Custom Login URL?
If you enabled the "Hide Login" feature and can't remember your custom login URL, don't worry. Here's how to find it or reset it.
What Happened?
Royal Security's "Hide Login" feature replaces the default /wp-admin and /wp-login.php URLs with a custom URL you chose (like /my-secret-login). If you forgot what you set it to, the standard WordPress login URLs will return a 404 error.
Your custom login URL is stored in the database, so we can easily find it or reset it.
Recovery Methods
Method 1: Check Your Email Try First
When you enabled the custom login URL, Royal Security may have sent you a notification email with the new URL. Search your email for:
- "Royal Security" + "login URL"
- "Custom login" + your domain name
- Check your spam/junk folder
Method 2: Find URL in Database Recommended
Look up your custom login URL in the WordPress options table.
Open phpMyAdmin
Log into your hosting control panel and open phpMyAdmin.
Select your WordPress database
Click on your WordPress database in the left sidebar.
Run this SQL query
Click the "SQL" tab and run:
Use your custom URL
The result shows your custom login slug. Access it at: https://yoursite.com/[result]
Method 3: Disable Custom Login URL Reset Feature
If you want to go back to the default WordPress login URLs:
Open phpMyAdmin
Access your database through your hosting panel.
Delete the custom URL option
Run this SQL command:
Access standard login
You can now access /wp-admin or /wp-login.php as normal.
After logging in, go to Royal Security settings and set a new custom login URL that you'll remember. Write it down this time!
Method 4: FTP Recovery No Database Access
If you can't access phpMyAdmin, temporarily disable the plugin:
Connect via FTP/SFTP
Use FileZilla or your hosting's file manager.
Navigate to plugins
Go to /wp-content/plugins/
Rename the plugin folder
Rename royal-security to royal-security-disabled (or royal-security-lite for Lite version)
Login at /wp-admin
With the plugin disabled, standard login URLs work again.
Rename folder back & reconfigure
Rename the folder back, reactivate the plugin, and set a memorable custom URL.
Prevent This in the Future
- Bookmark your login URL - Save it in your browser bookmarks
- Use a password manager - Store the URL with your credentials
- Write it down - Keep it in a secure physical location
- Use something memorable - Like
/my-logininstead of random characters - Email yourself - Send yourself the URL when you set it