Redirect After Login
Control where users are redirected after logging in. Send everyone to the same page, or configure different destinations based on user roles — perfect for membership sites, client portals, or improving the user experience.
Use Cases
- Redirect customers to their account page instead of the dashboard
- Send blog authors directly to the Posts list
- Guide administrators to the dashboard while editors go elsewhere
- Direct new users to a welcome or onboarding page
How It Works
- Enable the module in Switchboard
- Choose Single URL mode or Role-Based mode
- Enter your redirect destination(s)
- Users are redirected to your configured URL after login
Where to Find It
Location: Configure in the module settings. The redirect happens automatically after any successful login via /wp-login.php or /wp-admin.
Redirect Modes
Single URL Mode
All users go to the same URL after login, regardless of their role.
Best for:
- Simple sites where everyone should land on the same page
- Sites without distinct user role needs
- Quick setup without complexity
Role-Based Mode
Different user roles can be sent to different URLs.
Best for:
- Membership sites with different member levels
- Sites with distinct user types (customers, editors, admins)
- Complex setups requiring customized user journeys
Settings
Single URL Mode
| Setting | Description |
|---|---|
| Redirect URL | The URL all users are sent to after login |
Role-Based Mode
Each WordPress role gets its own URL field:
| Role | Typical Redirect |
|---|---|
| Administrator | /wp-admin/ (dashboard) |
| Editor | /wp-admin/edit.php (posts list) |
| Author | /wp-admin/edit.php (posts list) |
| Contributor | /wp-admin/edit.php?post_status=draft (their drafts) |
| Subscriber | /my-account/ or / (frontend) |
Leave a role’s URL empty to use the WordPress default.
Common Redirect Destinations
| URL | Destination |
|---|---|
/ | Homepage |
/welcome/ | Welcome/onboarding page |
/my-account/ | Account page (WooCommerce, membership) |
/dashboard/ | Custom dashboard page |
/wp-admin/ | WordPress admin dashboard |
/wp-admin/edit.php | Posts list |
/wp-admin/profile.php | User profile |
/wp-admin/upload.php | Media library |
Example Configurations
Membership Site
Administrator → /wp-admin/
Editor → /wp-admin/edit.php
Subscriber → /members-area/
Customer → /my-account/Blog with Guest Authors
Administrator → /wp-admin/
Editor → /wp-admin/edit.php
Author → /wp-admin/edit.php
Contributor → /wp-admin/edit.php?post_status=pending
Subscriber → /Client Portal
Administrator → /wp-admin/
Client (custom role) → /client-dashboard/Simple Site
All Users → /dashboard/Security
This module only allows internal URLs (same domain). External URLs are rejected to prevent open redirect vulnerabilities.
Valid URLs:
/welcome/(relative path)https://yoursite.com/dashboard/(absolute, same domain)
Invalid URLs (ignored):
https://external-site.com/(external domain)//other-domain.com/(protocol-relative external)
FAQ
What if a user has multiple roles?
WordPress users typically have one primary role. If a user has multiple roles, the redirect uses the first role in their role list (usually the one assigned first).Can I redirect to external URLs?
No, for security reasons only internal URLs are allowed. This prevents open redirect vulnerabilities that could be exploited for phishing.What happens if I leave a role’s URL empty?
That role uses the WordPress default behavior (typically redirecting to the admin dashboard or the page they were trying to access).Does this work with WooCommerce?
Yes! You can redirect customers to/my-account/ or any WooCommerce page. This module works alongside WooCommerce’s own redirect settings.Will this override ‘redirect_to’ parameters?
This module uses WordPress’slogin_redirect filter. If another plugin or the redirect_to URL parameter specifies a destination, behavior depends on filter priority.Can I redirect users logging in from the frontend?
Yes, the redirect applies to any login through WordPress’s standard login system, whether from/wp-login.php, a login widget, or a modal login form.For membership sites, redirect subscribers to the frontend (like /members-area/) rather than the dashboard. Most members don’t need to see the WordPress admin.
This module handles the redirect destination, not the login process itself. For custom login pages or forms, use a dedicated login plugin alongside this module.
Get access to all 147 modules with a single license