How to change your WordPress login URL (and why the default one is a target)
Every WordPress site has the same login address: yoursite.com/wp-admin. Bots know that, so it is the first address they try — thousands of automated login attempts a day on a typical site, before anyone has even looked at your content. Moving the login page to a private address does not make a site unhackable, but it takes away the easiest target. This guide shows how to do it with a free plugin, step by step, including how to get back in if you lock yourself out.
Why change the WordPress login URL
The default login URL is public knowledge. Automated tools do not need to find your site first; they try /wp-admin and /wp-login.php on every WordPress site they can reach, then test common usernames and passwords. A private login URL means those automated attempts land on a redirect or a 404 page instead of your login form.
Be clear about what this does and does not do. It hides the login form; it does not strengthen a weak password, it does not add two-factor authentication, and it will not stop an attacker who already knows your new address. Treat it as one layer: a private login URL plus a strong password plus two-factor authentication is a sensible combination. If you have not set up two-factor authentication yet, do that as well — it is the single most effective step for admin login security.
Before you start
Do three things before touching anything. First, make sure you are logged in as an administrator — only an administrator can install plugins. Second, decide on the new login address now and write it down somewhere safe, such as your password manager. If you forget it, you will need the recovery steps at the end of this guide. Third, tell anyone else who logs in to the site — another admin, an editor, a developer — because the old address will stop working for them too.
Pick a new address that is hard to guess: lowercase letters, numbers and dashes, nothing obvious. Do not use “login”, “admin”, “dashboard”, or your site or brand name. Something like “quiet-desk-482” is a reasonable shape — the point is that nobody should be able to guess it from looking at your site.
Step 1: Install WPS Hide Login
In your WordPress dashboard, go to Plugins, then Add New. In the search box, type “WPS Hide Login” and look for the plugin by WPServeur. Click Install Now, then Activate.
WPS Hide Login is a very light plugin: it changes the address of the login form page without renaming any core files and without adding rewrite rules. That matters because it makes the change fully reversible — deactivating the plugin brings your site back exactly to the state it was in before. Your registration form, lost-password form, login widget and expired sessions keep working as normal.
One limitation to know before you rely on it: the plugin does not work with plugins or themes that hardcoded wp-login.php into their own code. If you use a plugin that links directly to wp-login.php, test it after the change or pick a different approach for that plugin.
Step 2: Set the new login address
After activation, the plugin puts its settings at the bottom of the Settings, then General page — it does not create a separate menu item. Scroll down to the WPS Hide Login section. In the Login URL field, type your new address (just the slug, for example “quiet-desk-482”, not the full URL).
In the Redirection URL field, choose where visitors should be sent when they try the old login addresses. Your homepage is a sensible choice; a 404 page also works. This is what bots and anyone guessing the old address will see from now on.
Click Save Changes. The change takes effect immediately — the old addresses stop serving the login form the moment you save.
Step 3: Test the new address in a private window
Do not skip this step. Open a private or incognito browser window — one where you are not logged in — and go to your new login address (yoursite.com/quiet-desk-482, using whatever slug you chose). The WordPress login form should appear. Log in to confirm it works.
Then, in the same private window, try the old addresses: yoursite.com/wp-admin and yoursite.com/wp-login.php. Both should redirect to the address you set in the Redirection URL field, or show a 404 page. If the login form still appears at either old address, the change did not take — go back to Settings, then General, check the saved value, and save again.
Step 4: Update bookmarks and tell your team
Update your own bookmark and your password manager entry to the new address — the old bookmark will now redirect away from the login form. Then tell every other person who logs in to the site, and update any documentation or handover notes that mention the old address. A teammate locked out because nobody told them is the most common problem after this change, and it is entirely avoidable.
If you use a caching plugin other than WP Rocket, add the new login slug to the list of pages not to cache, as the plugin’s documentation recommends. WP Rocket is already fully compatible and needs no change. A cached login page can behave oddly, so this step is worth the minute it takes.
If you get locked out
It happens — usually a forgotten slug or a typo saved in a hurry. There is a way back, but it needs hosting access, not WordPress access. In your hosting file manager, find the wp-content/plugins folder and rename the wps-hide-login folder to something else, for example wps-hide-login-disabled. That deactivates the plugin, and the default login addresses work again immediately. Log in through wp-login.php, fix or remove the setting, and reinstall the plugin if you still want it.
If you are comfortable with the database instead, the saved address lives in the whl_page value in the options table. Either route restores the original state — nothing is permanently changed.
What I did not test
The steps above were checked against the plugin’s official wordpress.org documentation on 9 Nov 2026, on WordPress 7.1.4. I did not install the plugin on a live site to test this guide, so the behaviour described here is from the official documentation, not a live install. If your dashboard looks different, check the plugin page first — a newer version may have moved a setting.
Frequently asked questions
Will changing the login URL break my site?
No. The plugin changes no core files and adds no rewrite rules, so your content, theme and other plugins are untouched. Deactivating it restores the default addresses immediately. The only things that can break are plugins or themes that hardcoded wp-login.php, as noted above.
Does this stop brute-force attacks?
It stops the automated attempts that target the default address, which is most of them. It does not stop an attack on the new address, and it is not a substitute for a strong, unique admin password and two-factor authentication. Use all three together.
What if I forget the new login address?
Use the recovery steps above: rename the plugin folder in your hosting file manager, log in through wp-login.php, and set a new address. This is why writing the address down before you save it matters.
Do I still need two-factor authentication?
Yes. A hidden login page and two-factor authentication protect against different things — one hides the door, the other checks who is at it. Set up both.