On this page
- Where is the login page for a WordPress website?
- Which account are you actually logging in to?
- How to log in, step by step
- Why does /wp-login.php show a 404 or send you to the homepage?
- What does it mean when the login still fails?
- Who should hold the logins for your website?
- When should you stop and get help?
- Frequently asked questions
Key takeaways
- Try /wp-login.php and /wp-admin/ on your domain. If WordPress is installed in a folder such as /blog, add that folder to the path.
- Your site’s own users are separate from WordPress.com, WordPress.org forum, hosting panel and WooCommerce customer accounts. WooCommerce’s app docs say a WordPress.com password is not necessarily the WP Admin password.
- If /wp-login.php returns a 404, a login-hiding plugin such as WPS Hide Login has probably moved it. The custom path is stored in the whl_page option, and removing the plugin’s folder brings the default login back.
- Login loops, 403 errors and critical errors are not password problems. Resetting the password again fixes none of them.
- Give every person and every tool its own account with the role the work needs. Keep the hosting and the domain in the owner’s name.
On a self-hosted WordPress site, the login form is at https://yourdomain.com/wp-login.php. WordPress’s Advanced Administration Handbook also says that visiting /wp-admin/ while logged out redirects you to that form. So for most sites, typing your domain followed by /wp-admin is all it takes.
The address is easy. Problems start when the address doesn’t work, when the right password gets rejected, or when you aren’t sure which “WordPress” account is yours. This guide covers where the login is, which account to use and how to get in. It also explains what each failure means, with links to the detailed fixes in our guide to fixing WordPress login problems by symptom.
Where is the login page for a WordPress website?
For a site installed at the root of its domain, use yourdomain.com/wp-login.php or yourdomain.com/wp-admin/. The first is the login form. The second is the dashboard, and it redirects to the form when you aren’t signed in. After you log in, you land in /wp-admin/.
Some sites install WordPress in a folder, and then the folder is part of the path. A site installed under /blog logs in at yourdomain.com/blog/wp-login.php. You can check this in your hosting file manager. A WordPress installation contains the folders wp-admin, wp-content and wp-includes, and wherever those sit is where the login lives.
| Setup | Login address | What to watch for |
|---|---|---|
| WordPress at the domain root | yourdomain.com/wp-login.php or /wp-admin/ | Both reach the same form |
| WordPress in a folder | yourdomain.com/folder/wp-login.php | The folder name changes the path |
| Login-hiding plugin active | A custom path someone chose | /wp-login.php shows a 404 or redirects |
| Managed host with a dashboard button | The host’s “log in to WP Admin” link, or the normal address | The button uses the host’s account, not your WordPress user |
| Site hosted on WordPress.com | WordPress.com sign-in | A different account system from self-hosted sites |
Which account are you actually logging in to?
A self-hosted site keeps its own list of users in its own database. No other account opens it unless someone connected that account on purpose. Several different logins share the WordPress name, and mixing them up is the most avoidable lockout there is:
- Your site’s users. These are the accounts listed under Users in your dashboard. This is the login you need to edit the site.
- A WordPress.com account. It runs sites hosted on WordPress.com and Jetpack connections. It only opens a self-hosted site if WordPress.com’s Secure Sign-On has been set up. WooCommerce’s app documentation states that a WordPress.com password is not necessarily the WP Admin password.
- A WordPress.org account. It is for the support forums and the plugin directory. It has no connection to your site.
- Your hosting account. It gets you into the control panel, the file manager and the database. It can’t log in to WordPress, but it is how you recover when WordPress won’t let you in.
- WooCommerce customer accounts. Shoppers log in on the store’s My Account page. Customers should never be sent to the admin login.
The pattern on r/Wordpress is familiar. An owner who edits the site every day can’t give a technician working credentials, because the details they try are for WordPress.com or WordPress.org. If you log in from a saved browser session, check under Users which username and email address your account really has, and save both in a password manager.
How to log in, step by step
You need the site address, a username or email address that belongs to a user on this site, and that user’s password. If the site uses two-factor authentication, you also need your authenticator app or backup codes.
- Open a private browser window. You start without old cookies or a stale session. This won’t get you past a firewall or a server-side redirect, but it rules out the browser.
- Go to the confirmed address. Check the domain and HTTPS in the address bar before you type anything. Staging copies and old domains can show a login form that looks exactly the same.
- Enter your username or email address. WordPress accepts either one, as long as it belongs to a user on this site.
- Enter the password. Passwords are case-sensitive, so check Caps Lock. If a password manager fills the form, make sure the entry is for this site. An entry saved before a migration or a password change will fail even though nothing looks wrong.
- Decide about “Remember Me”. Leave it unticked on a shared computer. It keeps you logged in for longer and does nothing else.
- Complete the second factor if you’re asked. If the code changes while you’re typing it, enter the new one.
A successful login lands on the Dashboard, and the toolbar at the top shows the site’s name. Open Posts or Pages to confirm it is the site you meant to reach. If some menus are missing, such as Plugins, your account probably has a role below Administrator, such as Editor or Shop Manager. Your login worked. The role limits what you can see.
Why does /wp-login.php show a 404 or send you to the homepage?
Most of the time, a login-hiding plugin has moved the login page. WPS Hide Login is the best known. Its WordPress.org listing explains that it intercepts page requests instead of renaming core files, and that wp-login.php and wp-admin stop working for logged-out visitors. If nobody wrote down the new address, you have locked yourself out.
You can find the address or remove the block in three ways:
- Look in the plugin’s settings, if anyone else on the team can still log in.
- Look up the
whl_pageoption in the database’s options table using phpMyAdmin. The custom path is stored there. - In the hosting file manager or over SFTP, rename
wp-content/plugins/wps-hide-login. WordPress deactivates the plugin and the default login comes back. Log in, rename the folder back, and save the custom path somewhere you’ll find it.
A hidden login URL cuts down on automated noise, but it is not security on its own. The plugin’s own changelog lists fixes for login-page disclosure problems in versions 1.9.15 and 1.9.16. Two-factor authentication, limits on login attempts and regular updates do more. If you hide the URL, treat that as an extra layer and record the address.
If no such plugin is installed, check the folder path again. Then check whether the domain points to the server you think it does.
What does it mean when the login still fails?
The symptom you see tells you where to look. Most “wrong password” situations are not about the password. Here is how to read them, in the order worth checking.
“The password you entered is incorrect” or the reset email never comes
Click “Lost your password?” once, then check your spam folder. The email goes to the address on your WordPress user, which may not be your hosting or billing email. WordPress.org’s reset guide says other methods exist for times when email isn’t working on the server. With command-line access, WP-CLI can set a new password:
wp user list --fields=ID,user_login,user_email
wp user update 1 --user_pass="a-long-new-password"
Another option is WordPress’s emergency reset script, emergency.php. Delete it right after you use it, because the documentation warns that anyone else could use it to change the password. If you aren’t comfortable editing the database, ask your host to do the reset.
You log in and land back on the login form
This is a cookie or URL problem. WordPress’s handbook lists “Cookies are blocked or not supported”, login redirect loops and “too many redirects” as separate issues. Common causes are blocked cookies, a cookie domain mismatch, a mix of HTTP and HTTPS, and page caching. Under Settings, General, the WordPress Address and Site Address must agree on domain and scheme, including whether “www” is used. Constants in wp-config.php override both fields. Our symptom-by-symptom login guide covers the fix order.
A 403 or 429 instead of the form
A security plugin or the host’s firewall has blocked you, often after too many failed attempts. Stop retrying. If the block comes from a plugin, rename that plugin’s folder to get back in. Removing the plugin may not be enough. In one WordPress.org support thread, the 403 from All In One WP Security stayed after the plugin was removed. The fix was renaming the folder and removing the plugin’s rules from .htaccess. If the block is at the host, plugin changes do nothing. Test from another network, then send the host your IP address.
“There has been a critical error on this website”
A plugin, theme or PHP problem has crashed WordPress. Recovery Mode was added in WordPress 5.2. It emails the administrator a link that logs in with the faulty plugin or theme paused. If that email doesn’t arrive, rename wp-content/plugins to plugins-off, log in, rename it back, then reactivate plugins one at a time until the error returns. Disable plugins this way. Don’t delete them.
“Error establishing a database connection”
The whole site is down, and the login page is only part of it. Check the database details in wp-config.php, then contact your host. Changing the password won’t help.
Who should hold the logins for your website?
A lost password is a bad afternoon. Losing control of your access can last much longer. Community threads tell the same stories again and again. A team shares one admin login, someone changes the password, and everyone is locked out. An agency holds both the admin and the hosting access, and the owner can’t fix a broken link on their own site.
The habits that prevent this are simple:
- Each person gets their own user, with the lowest role that does the job. Use Editor for content and Shop Manager for a store. Keep Administrator for people who manage plugins and settings.
- Developers and technicians get their own temporary account. Take a backup before they start, and remove the account when the work is confirmed.
- Apps and tools that connect through the REST API get their own application password, created under Users, Profile. You can revoke each one separately. Each one has the same permissions as the user it belongs to, so attach it to an account with only the role the tool needs.
- The business owner holds the hosting account and the domain registration in their own name. That is the route back in when everything else fails.
- Write down any custom login URL, which plugin set it, and where the backup codes are stored.
Our guide to common WordPress security issues covers the rest of the cleanup, including old contractor accounts and resetting the secret keys to end active sessions.
When should you stop and get help?
Stop if fixing the problem means editing the database and you have no backup. Stop if the 403 keeps coming back after the plugin’s folder is renamed, or if the database error stays after you’ve checked wp-config.php. Those belong to your host or a developer. Stop right away if you find administrator accounts you don’t recognise or login files that have changed. That is a security incident, not a forgotten password. Keep the logs before anyone starts cleaning up.
If you’d rather not do the file and plugin work yourself, SiteSelf’s agent can take on this kind of WordPress troubleshooting and repair on request. It works through hosting (SSH) access, which still works when the dashboard doesn’t, and it reports what it changed and what it checked.