How to Log Into Your WordPress Site: A Simple Guide

Log in to WordPress at yoursite.com/wp-admin. Here is how to find a missing login page, reset a lost password, fix common login errors and secure the login screen.
Table of Contents

If you purchase through a link on our site, we may earn a commission.

To log in to a self-hosted WordPress site, add /wp-admin or /wp-login.php to the end of your domain, for example yoursite.com/wp-admin, and enter your username or email and password. On most sites yoursite.com/login and yoursite.com/admin also redirect there, while a site hosted on WordPress.com uses a different login at wordpress.com/log-in with your WordPress.com account.

Your WordPress Login URL

Every self-hosted WordPress install has the same two login addresses out of the box. Replace yoursite.com with your own domain:

  • yoursite.com/wp-admin: takes you straight to the dashboard if you’re already logged in, or to the login screen if you’re not.
  • yoursite.com/wp-login.php: the login screen itself.

WordPress also redirects a few short addresses for you. yoursite.com/login goes to the login screen, and yoursite.com/admin and yoursite.com/dashboard go to the admin area. These redirects work when the site uses pretty permalinks and no page already uses that slug, so treat /wp-admin as the one that always works.

The WordPress login screen, showing the URL in the browser header.

Once you’re in, you land on the dashboard. It’s where you write posts, create pages, change your site’s design and add plugins.

The WordPress dashboard.

Bookmark the login URL once you’ve found it.

Self-Hosted vs Hosted WordPress Login

If your site address ends in .wordpress.com, or you signed up for hosting at WordPress.com, you log in at wordpress.com/log-in instead. That account belongs to WordPress.com and works across every site you have there. You can sign in with your email and password, an emailed login link, or a Google or Apple account.

A self-hosted site (one you installed yourself or through a web host) has its own user accounts. Your WordPress.com password won’t open it, and its password won’t open WordPress.com. The exception is a self-hosted site connected through Jetpack with WordPress.com login turned on, which lets you sign in with your WordPress.com account.

How to Log In to WordPress

Open the login URL in your browser. You’ll see two fields:

  • Username or Email Address: either works.
  • Password: the one you set, or the one you chose from the link in your welcome email.

Type your details and click Log In. If they’re correct, WordPress sends you to the dashboard, or back to the admin page you were trying to reach.

Remember Me

The Remember Me checkbox keeps you logged in longer. Without it, WordPress logs you out when the browser session ends or after two days. With it ticked, the login cookie lasts 14 days. Leave it unticked on a shared or public computer.

The WordPress login page, highlighting the Remember Me checkbox.

Logging In as a New User

When a site admin adds you as a user, WordPress emails you a link to set your password.

A transactional email from a website that sends a new user a link to set their password.

Click it, choose a password and you can log in. The link expires after 24 hours. If WordPress says the link has expired or is invalid, use Lost your password? on the login screen to get a fresh one, as described below.

A WordPress login page showing an error message that a password reset link has expired.

Log In With Touch ID or Face ID

The quickest way into WordPress skips the password altogether. With a passkey, you click one button and confirm with Touch ID, Face ID, Windows Hello or a hardware security key. The passkey is stored on your device and opened with your fingerprint, face or device PIN, so it counts as the whole sign-in, and there’s no password for anyone to phish or guess.

WordPress needs a plugin for passkeys. Sigil adds a Sign in with a passkey button to the login screen, and browsers that support passkeys offer your saved one as soon as you click into the username field. It handles two-factor authentication for the rest of your users too, with authenticator apps, email codes and backup codes, and it can require a second factor for the roles you choose.

  1. Install and activate Sigil from the Plugins screen.
  2. Follow the setup wizard to add a passkey to your account. Your browser asks for Touch ID or Face ID to create it.
  3. Save the backup codes the wizard shows you somewhere safe.
  4. Next time, click Sign in with a passkey and confirm with your fingerprint or face.

Can’t Find Your WordPress Login Page?

A 404 error or a blank page at /wp-admin usually means the login lives somewhere else.

WordPress Is in a Subfolder

The folder name goes in the URL: a site in /blog logs in at yoursite.com/blog/wp-admin.

Some developer setups use a similar pattern. Sites built on the Bedrock framework keep WordPress in a /wp/ folder, so the login screen sits at yoursite.com/wp/wp-login.php.

A website using a custom /wp/ directory to host the WordPress login page.

A Plugin Changed the Login URL

Security plugins such as WPS Hide Login, Solid Security and All-In-One Security can move the login page to a custom address and return a 404 at /wp-admin for anyone who isn’t logged in. That’s working as intended.

To find the new address:

  1. Check the email or notes from whoever set up the site.
  2. Ask your developer or hosting support.
  3. If you have file access through your host’s file manager or SFTP, rename the plugin’s folder inside wp-content/plugins. That switches the plugin off and brings back the default /wp-login.php. Rename it back once you’re in and look up the custom URL in the plugin’s settings.

You’re on the Wrong Address

Check you’re using the domain the site actually runs on. A site that moved from a temporary or staging domain, or from http to https, can send you somewhere unexpected if you use an old bookmark.

Forgot Your WordPress Password?

Reset It by Email

On the login screen, click Lost your password? and enter your username or email address.

WordPress emails you a reset link. Open it, set a new password and log in.

An email inbox showing a transactional email from a WordPress website, asking to change a password.

Pick something secure and store it in a password manager. The Bitwarden password generator can create a long passphrase.

The Bitwarden Password Generator.

If the email never arrives, check spam first. Many hosts don’t send WordPress email reliably, so a missing reset email often means the site can’t send mail. An SMTP plugin fixes that for good. To get in right now, use one of the methods below.

Reset It With WP-CLI

If your host gives you SSH access, WP-CLI is the quickest fix. List the users to find yours:

wp user list

Then send the account a fresh reset email:

wp user reset-password yourusername

Reset It in phpMyAdmin

Most hosting control panels include phpMyAdmin. Take a database backup first, then:

  1. Open your site’s database and click the wp_users table. The prefix might differ from wp_ on your site.
  2. Click Edit on your user’s row.
  3. In the user_pass field, type your new password and choose MD5 from the Function dropdown.
  4. Click Go.

WordPress accepts the MD5 value once and replaces it with a stronger hash the next time you log in.

Ask Your Host or Admin

If you’re not the site owner, the site admin can reset your password from Users in the dashboard. If you are the owner and none of the above works, your host’s support team can reset it for you.

Common WordPress Login Errors

Login Redirect Loop

You enter the right details, the page reloads, and you’re back at the login screen. Work through these in order:

  1. Clear your browser’s cookies and cache for the site, or try a private window.
  2. Make sure you’re on the right address. If the WordPress Address and Site Address settings don’t match the URL you’re using (www vs no www, http vs https), the login cookie won’t stick. You can force the right values by adding define( 'WP_HOME', 'https://yoursite.com' ); and define( 'WP_SITEURL', 'https://yoursite.com' ); to wp-config.php.
  3. Rename the wp-content/plugins folder to switch off all plugins at once. If you can log in, rename it back and turn the plugins on one at a time to find the culprit.
  4. Clear any server or CDN cache through your host.

“Cookies Are Blocked or Not Supported by Your Browser”

WordPress needs cookies to keep you logged in. Allow cookies for your site, turn off any extension that blocks them, and reload the login page. If the error persists in every browser, a plugin or a caching rule is likely interfering, so try the plugin step above.

“Error Establishing a Database Connection”

This error shows on the login page and the front end because WordPress can’t reach its database. Either the database details in wp-config.php are wrong, or the database server is down. If you haven’t changed wp-config.php, contact your host first. Our guide to common WordPress errors covers more fixes.

Locked Out After Too Many Attempts

WordPress itself doesn’t lock accounts. The lockout comes from a security plugin or your host’s firewall. Wait for the lockout period to pass, or ask your host to unblock your IP address. If you can reach the site’s files, renaming the security plugin’s folder lifts the block. Turn it back on once you’re in.

“Sorry, You Are Not Allowed to Access This Page”

You’ve logged in, but your user role doesn’t have access to that screen. Ask an administrator to check your role under Users.

Logging In Through Your Hosting Dashboard

Many hosts let you open the WordPress dashboard from your hosting account, without the login URL or password. Bluehost, Hostinger and SiteGround all offer this, as do control panels like cPanel through tools such as WP Toolkit. Server panels like SpinupWP show a direct admin link too.

The SpinupWP dashboard showing a sign in link to the WordPress admin dashboard.
The SpinupWP dashboard showing a sign in link to the WordPress admin dashboard.

Each host labels it differently, but the steps are similar:

  1. Log in to your hosting account.
  2. Open the section for WordPress or for managing your website.
  3. Click the button to log in to WordPress or open the admin.

This is also a way back in when you’ve lost your password or can’t find a custom login URL.

Managing Multiple Sites

If you manage several WordPress sites, tools like Jetpack and ManageWP put them in one dashboard with a one-click login to each.

The ManageWP dashboard showing a link to the WordPress dashboard of a website.

How to Secure Your WordPress Login

Bots hit WordPress login pages constantly, so a few settings are worth turning on.

  • Turn on two-factor authentication. With 2FA, a stolen password isn’t enough to get in. Free plugins such as Sigil, WP 2FA and Two-Factor add it.
  • Limit login attempts. Limit Login Attempts Reloaded blocks an IP address after repeated failed logins, which stops brute force attacks from guessing forever.
  • Use a long password. Length matters more than a mix of symbols, according to current guidance. A passphrase from a password manager is ideal.
  • Keep WordPress, themes and plugins updated. Updates carry security fixes. The Wordfence and Patchstack blogs report new vulnerabilities as they’re found.

Changing the login URL with a plugin cuts down bot traffic to the login page, but it works best on top of 2FA and attempt limits.

WordPress Login FAQ

What Is the Default WordPress Login URL?

It’s yoursite.com/wp-login.php. Going to yoursite.com/wp-admin also brings you to the login screen when you’re logged out.

How Do I Log In to WordPress.com?

Go to wordpress.com/log-in and sign in with your WordPress.com email or username, an emailed login link, or your Google or Apple account. Self-hosted WordPress sites use their own login page instead.

Why Does /wp-admin Show a 404 Error?

Usually because a security plugin moved the login page, or because WordPress is installed in a subfolder. Check with whoever built the site, try /blog/wp-admin or similar, or use your host’s one-click login.

Can I Log In With My Email Address Instead of a Username?

Yes. The login form accepts either your username or the email address on your account.

How Long Does WordPress Keep Me Logged In?

Until you close the browser, and no longer than two days. Tick Remember Me and it’s 14 days.

How Do I Get Back In If the Password Reset Email Never Arrives?

Reset the password with WP-CLI or phpMyAdmin, log in through your hosting dashboard, or ask your host’s support team to reset it.

Mark Zahra runs WP Mayor and leads RebelCode, the company behind WP RSS Aggregator and Spotlight Instagram Feeds. That dual vantage point, both publisher and product builder, shapes how he covers the WordPress ecosystem. He has shipped products to tens of thousands of sites and reviewed hundreds more. He started with WordPress in 2012, joined WP Mayor in 2014, and has since written for a community of millions, focused on honest, practical guidance readers can act on.
If you purchase through a link on our site, we may earn a commission.

More from Our Blog

Get the Monthly Showcase

One email a month, written by me, with the best of the last month’s editorial work and some stuff you won’t find anywhere else.

Stay curious and keep building.

Mark from WP Mayor