Login and logout redirects
By default, WordPress sends people to the dashboard after they log in, and back to the login page after they log out. That’s fine for administrators, but wrong for customers, members or subscribers. Shield lets you choose where each group lands.

Where to find it#
Go to Settings → Login Shield → Access tab. The section is called Login & logout redirects. It sits below Restrict roles to IP addresses.
It’s off until you enter at least one address.
The fields#
- Default after login: where everyone goes after signing in, unless a role has its own address. Leave it blank to keep WordPress’s normal behavior. The faint example in the box shows your dashboard address.
- Default after logout: where everyone goes after signing out, unless a role has its own address. The faint example shows your home page.
- Per role: a table with one row for each role on your site, with an After login and an After logout box. Fill in only the rows you want to change.
Every address must start with https:// (or http://) and be a full web address.
How Shield picks the address#
- If the user’s role has its own address, that one is used.
- Otherwise, the default is used.
- If both are blank, WordPress’s normal behavior applies.
For users with more than one role, the first role that has an address wins, in the order WordPress lists the roles on that user.
An example#
| Who | After login | After logout |
|---|---|---|
| Default (everyone) | https://yoursite.com/my-account/ | https://yoursite.com/ |
| Administrator | https://yoursite.com/wp-admin/ | (blank, uses the default) |
| Subscriber | https://yoursite.com/members/ | https://yoursite.com/goodbye/ |
Result: administrators land on the dashboard, subscribers land on the members page, everyone else lands on My Account. After logout, subscribers see the goodbye page and everyone else goes to the home page.
Set it up#
- Open the Access tab and scroll to Login & logout redirects.
- Enter a Default after login, Default after logout, or both. Use the full address of a page on your site.
- For any role that needs a different destination, fill in its row in the Per role table.
- Click Save access settings.
- Test with a real account for each role you set. Log in, check where you land, then log out and check again.
Deep links still win#
If someone is sent to the login page on the way to a specific page, such as “log in to edit this post”, WordPress remembers where they were heading. Shield leaves that alone. They land on the page they asked for, not on your role redirect.
Only a plain dashboard address (/wp-admin/) is treated as “no particular destination”, so your redirect still applies to people who just clicked a login link.
For logout, the same rule applies. If the logout link already names a destination, Shield doesn’t override it.
It works with WooCommerce#
The My Account login form is covered too. If your WooCommerce login form has its own “redirect to” field, a specific destination there is respected. Otherwise your role or default address is used.
Where it does not apply#
Role redirects apply to normal password logins on the login page and on WooCommerce My Account, and to the end of a two-step login after the 2FA code is accepted.
They do not apply to:
- Passkey sign-ins. Passkeys send people to the dashboard, or to a destination the sign-in form specifies.
- Magic link sign-ins. Magic links send people to the dashboard, to My Account if the link was requested from WooCommerce, or to a destination the request carried.
Developers can change those destinations with filters. See “Actions and filters”.
Good to know#
- Addresses must be on your own site. WordPress only redirects to addresses it considers safe, which means your own site (and any hosts allowed by a developer filter). An address on another domain is ignored, and the visitor goes to the normal destination. If you want to send people elsewhere, use a page on your site that forwards them.
- Invalid entries are dropped. Addresses that aren’t valid web addresses aren’t saved.
- Roles without a row you fill in use the defaults.
- Cached pages. The destination page should not be cached for logged-in users. See “Caching and login pages”.
- Subscribers and the dashboard. WordPress can send subscribers to a dashboard page where they have nothing to do. Setting a redirect for the Subscriber and Customer roles is a common reason for using this feature.
- Custom login URL. This is unaffected. It works the same with a custom login address.
Was this helpful?
Thanks for your feedback!
✓ Feedback received. Thank you!