Tutorials

How to change the WordPress login URL

Every WordPress site has its login page at the same address: /wp-login.php, with /wp-admin sending you there if you’re logged out. Bots know that too, so they try usernames and passwords on it around the clock. Moving the login page to an address of your own makes most of them give up, because they never find the form.

It’s worth being clear about what that does, though. Changing the login URL cuts down the noise: fewer failed logins in your security logs, less load from bots, and fewer “someone tried to log in” emails. It doesn’t make a weak password safe. Anyone who finds the new address, or attacks your site some other way, is back where they started. So I’ll show you how to move it, and then go through what actually protects your login.

Change the login URL with WPS Hide Login

The simplest way is WPS Hide Login, a free plugin with more than 2 million active installs that does just this one thing. It doesn’t rename or change any WordPress files. It catches requests to the login page instead, so turning the plugin off puts everything back the way it was.

  1. Go to “Plugins” → “Add New Plugin”, search for WPS Hide Login, then install and activate it.
  2. Go to “Settings” → “WPS Hide Login”. It takes you to a section at the bottom of “Settings” → “General”.
  3. In “Login url”, type the new address, like studio-door. Pick something that isn’t an obvious guess like login or admin.
  4. In “Redirection url”, choose where visitors go if they try the old addresses. The default is your 404 page, which is a good choice.
  5. Click “Save Changes”, and bookmark the new address before you log out.

From now on, /wp-login.php shows your 404 page, and so does /wp-admin for anyone who isn’t logged in. You log in at the new address, like example.com/studio-door.

If you forget the address, rename the plugin’s folder, wp-content/plugins/wps-hide-login, with your host’s file manager or SFTP. WordPress then turns the plugin off, and /wp-login.php works again. Log in, rename the folder back, and check the setting.

If you already use a security plugin, look in its settings first. Several of them, like Kadence Security and All-In-One Security, have the same feature built in, and two plugins changing the login URL at once will lock you out.

What actually protects your login

A hidden login page is a nice extra, like having a front door that doesn’t face the street. These are the things that actually stop someone from getting in:

  • A strong, unique password. Let your password manager make one. Bots try leaked passwords from other sites, so reusing one is the real risk. 1Password has been my password manager of choice for years.
  • Two-factor authentication. WordPress doesn’t have it built in yet. The free Two Factor plugin, maintained by WordPress contributors, adds codes from an authenticator app, email codes and backup codes.
  • Passkeys. Log in with your fingerprint, face or device PIN instead of a password. They’re also plugin-only for now, through plugins like WP 2FA and Wordfence, or Two Factor with its WebAuthn add-on.
  • Limits on login attempts. Blocking an address after a few failed tries stops guessing on any URL. Most security plugins do this, and Jetpack’s brute force protection does it on WordPress.com and Jetpack sites.

If you only do one thing, turn on two-factor for your administrator accounts. It protects you even if your password leaks, which a new login URL doesn’t.

Notes

  • On WordPress.com, you can skip this. Sites on WordPress.com log in through WordPress.com by default, with its own two-step authentication, so wp-login.php isn’t where attacks matter.
  • Tell everyone who logs in. Editors and clients with the old address bookmarked will get a 404. Send them the new one.
  • Check your other logins. Some themes and plugins, like membership or WooCommerce account pages, link to wp-login.php directly. WPS Hide Login updates WordPress’s own login links, but test a logout and a password reset after the change.
  • Customizing the login page? That works the same at the new address. See how to customize the WordPress login page.

Published December 2, 2026