The default WordPress login URL
For a site at https://harbourbakery.example (a made-up bakery we use as an example), these all reach the login page:
| Address | What happens |
|---|---|
https://harbourbakery.example/wp-login.php |
The login page itself |
https://harbourbakery.example/wp-admin/ |
Sends logged-out visitors to the login page, then back to the dashboard |
https://harbourbakery.example/login |
Redirects to the login page when pretty permalinks are on |
https://harbourbakery.example/admin or /dashboard |
Redirects to the dashboard (and so to the login page first) |
The short addresses come from a WordPress function that only acts when the address would otherwise be a “page not found” and pretty permalinks are on (wp_redirect_admin_locations in the developer reference). If the site has a real page called “Login”, that page wins.
Other addresses on the same page:
- Lost password:
/wp-login.php?action=lostpassword - Log out: from the toolbar’s account menu (the logout link carries a security token, so a bare address does not work)
- Registration, if the site allows it:
/wp-login.php?action=register
When WordPress lives in a subfolder or another address
Some sites run WordPress from a folder, such as https://harbourbakery.example/wordpress/, while visitors see the site at the main address. The login page then lives with WordPress, at https://harbourbakery.example/wordpress/wp-login.php.
To check which is which, go to Settings, General once logged in: “WordPress Address (URL)” is where WordPress lives and where the login page is; “Site Address (URL)” is what visitors see. Without access to wp-admin, WP-CLI over SSH gives the exact login address:
wp option get siteurl
wp eval 'echo wp_login_url(), PHP_EOL;'
siteurl is the WordPress address. wp_login_url() returns the login page WordPress links to, which usually also reflects a plugin that changed it.
Staging copies, local copies and sites mid-migration have their own address. Log in at the copy’s address, not the live site’s.
Multisite networks
Each site in a network has its own /wp-login.php, but one account can work across the network. The network’s own screens are at /wp-admin/network/ on the main site, for super admins only.
WooCommerce and membership sites
Shops send customers to My account, /my-account/ by default (WooCommerce, Settings, Advanced, Page setup shows which page it is). Membership and learning plugins usually add their own login page. Staff can use either the shop’s page or wp-login.php.
When the login page was moved or hidden
Security plugins can move the login page to a custom address and answer the old ones with “page not found”. If /wp-login.php and /wp-admin/ both show a 404:
- Ask whoever set the site up. The new address is in that plugin’s settings.
- Check the plugins folder over SFTP. Look in
wp-content/plugins/for a plugin that hides or renames the login (its name usually says so). - Switch it off to get the default back. Rename the plugin’s folder (for example add
-off); WordPress switches a plugin off when its folder disappears. Log in at/wp-login.php, then rename the folder back and reactivate it if the site should keep it. - Or ask WP-CLI:
wp eval 'echo wp_login_url(), PHP_EOL;'prints the address WordPress currently uses.
When the address is right but you still cannot log in
- Forgotten password: use “Lost your password?” on the login page. If the email never arrives, the site’s mail is not set up; fix that, or reset the password with WP-CLI:
wp user list --role=administrator --fields=ID,user_login,user_email
wp user reset-password harbour-admin --skip-email --show-password
The second command sets a new random password and prints it. Log in, then change it to one from your password manager.
- Locked out after too many attempts: a login-limit plugin or the host blocked your address. Wait for the lockout to end, or rename that plugin’s folder.
- “Cookies are blocked” or a login loop: clear the site’s cookies, and check that the WordPress Address and Site Address both use
httpsand the samewwwor non-wwwform. A page cache that stores the login page causes loops too. - The host’s panel: many hosting panels have a WordPress tool with a sign-in button that skips the password entirely.
There is no default username or password
WordPress has no built-in “admin/admin”. The first account is created when WordPress is installed, by whoever installed it or by the host’s one-click installer, which usually emails the details to the hosting account’s owner. Old sites often still have a user called admin; replace it with a named account, because password-guessing bots try that name on every site they find.
Is it a WordPress site at all?
If none of these addresses work and no plugin explains it, check the site really runs WordPress before digging further. New clients are not always sure what their site was built with.
- View the page source (right-click, View page source) and search for
wp-contentorwp-includes. WordPress sites load their styles and scripts from those folders, though a CDN or a hardening plugin can hide the paths. - Open
/wp-json/on the site. A WordPress site usually answers with a block of data listing its REST API routes; some security setups limit this for visitors. - Ask the host. The hosting panel lists installed applications, and the files over SFTP settle it: a WordPress site has
wp-config.php,wp-login.phpand thewp-admin,wp-includesandwp-contentfolders in its root.
If it is another platform (a site builder or a different CMS), its login lives somewhere else entirely, usually on the builder’s own website rather than the client’s domain.
Logging in to many client sites
An agency with 40 client sites has 40 login addresses, 40 sets of passwords and, ideally, 40 second steps. A few habits keep that manageable:
- One entry per site in the agency’s password manager, with the exact login address saved in the entry, including any custom one from a security plugin. The password manager then fills the right form on the right domain.
- Named accounts for each person at the agency, not one shared “agency” login, so you can remove someone who leaves without changing everyone’s password.
- Staging and live kept apart: give staging entries their own name in the password manager, so nobody edits the live site thinking it is the copy.
Giving clients a way in
- Send the exact address and suggest a bookmark.
- Give each person their own account, never a shared one, with the lowest role that does the job (an Editor manages content without being able to install plugins).
- Turn on two-step login for anyone who is an administrator, and remove accounts of people who left.
How Keptstone handles it
Agency staff rarely need the login address at all. Keptstone’s one-click login opens a client’s wp-admin from the dashboard with a single-use link that works for 60 seconds, signed in as the administrator who connected the site; every login is recorded. Staff skip the second step there because they already passed two steps to get into Keptstone. Owners, admins and technicians can use it; members cannot. For sites behind a host firewall, Keptstone signs the link itself and the browser opens it on the site.
For the client’s own logins, two-step login is required for administrators by default and needs no setup (a code arrives by email until they add an authenticator app), and hardening adds login limits and generic login errors. All of it is in the Care plan, $2 a site a month. Managing many client sites this way is covered in managing multiple WordPress sites.
Questions
What is the default WordPress admin login URL?
It is /wp-login.php on the site's address, and /wp-admin/ sends logged-out visitors there. With pretty permalinks on, /login and /admin redirect to the login page and the dashboard too, unless a page already uses those addresses.
What is the default WordPress username and password?
There is none. The username and password are chosen when WordPress is installed, or created by the host's installer and emailed to the account owner. If nobody knows them, reset the password from the login page or with WP-CLI.
Why does /wp-admin show a 404 page?
Usually a security plugin has moved the login page and hides the old addresses from logged-out visitors. Use the new address, or rename that plugin's folder over SFTP to switch it off and get the default login back.
Where do WooCommerce customers log in?
On the My account page, /my-account/ by default. Customers can also use wp-login.php, but the shop's own page keeps them in the store's design and sends them to their orders.