You can use the login_redirect
filter:
add_filter( 'login_redirect', 'wpse_159078_login_redirect' );
function wpse_159078_login_redirect( $redirect ) {
if( ! current_user_can( 'update_core' ) ) {
// if it's not a super admin that's logging in
$redirect = get_home_url();
}
return $redirect;
}
References
Related Posts:
- Multisite – Redirect All Users to Subsite Home Page on Subsite Login
- Auto Redirect after login
- How to write RewriteRule for login in multisite
- Admin user getting redirected to /wp-admin/user
- Redirect Main Site to Subsite in Multisite WordPress
- Is there a is_user_logged_in() for multisite?
- Why is WordPress Multisite redirecting to wp-signup.php and how to fix it?
- How to disable Multisite sign-up page?
- Unable to login to new custom domain on multisite?
- WordPress multisite,several different languages,page redirect?
- WordPress Multisite – Multiple subfolders for blogs
- WordPress multisite subdirectory redirect infinite loop issue
- Multisite 404 errors and non-www redirecting to home page
- share login/logout sessions across two installs?
- How to Login Once to an Entire WP Multisite Network
- multisite htaccess 301 redirects
- W3 Total Cache Plugin with WP 3 MultiUser [closed]
- Redirect all users, except network administrators, from the main site to a subsite
- Multisite wp-admin redirect loop
- Multisite non-www domain redirects to sign-up
- WordPress network (multisite) /wp-admin/ redirect loop (ERR_TOO_MANY_REDIRECTS)
- Domain redirect in WordPress multisite
- Multisite non www domain gives registration error but should redirect to www.domain.com
- 301 Redirects for posts, category, pages from original domain to sub-domain of multisite
- Trying to access second site dashboard on a multisite configuration proceeds to an error
- Redirect loop (only for multisite network admin)
- WordPress Multisite Login Access
- Why wordpress multisite redirect to wp-signup if site exists?
- Sub-subdomain getting redirected to main domain
- Multisite network admin – URL / redirect error
- Subdomain login problems
- WordPress Multisite local: wp-login.php refreshes on login Chrome Browser
- ‘Remote Login’ with MultiSite Domain Mapping still forcing users to login to all blogs individually?
- How to exclude a directory from WordPress permalinks in a Multisite environment?
- Redirect subdomain homepage to domain specific page in wordpress multisite
- WordPress multisite subdirectory on nginx behind reverse proxy
- How to stay logged in on a multisite with different domains?
- Multisite Redirect issue
- How to Redirect login User with Mapped Domiain Primary blog Url to Original Sub-site Url
- Disable domain redirect
- Redirect users on logout
- Multisite, multiple domains per site
- Multisite Network menu links not updating
- Login on Multiple Sub-Domains without Multisite
- How to disable the default WordPress redirect to non-www URLs?
- Fresh Multisite Install – Can’t Log In
- https redirect hell (adding www)
- WPMU Development Environment
- Redirect subdomain in Multisite installation?
- Issue with htaccess redirection in WP Multisite
- Site kit Google Analytics setup giving Error: {“error”:”invalid ‘redirect_uri'”}
- All pages have 302 redirect, which I can’t remove
- Why my deleted url is redirecting to random post?
- Redirect only posts to New Domain
- WordPress MultiSite login to the respective site
- Multsite redirecting to the main site
- Multisite setup help – plain domain/subsite always redirects to domain with subdir multisite
- Redirect & permalink problems after moving multisite to a new server
- Temp URL Redirect Loop
- Installed domain-based Multisite but can’t access wp-admin (redirect loop)
- Redirect Site Geologically
- How to configure Multisite Network with randomized hostnames?
- WordPress Multisite Strange Redirect on Primary Site
- Wrong Redirect/Rewrite Rules?
- Htaccess file isn’t redirecting http sub-pages to https––they display 404 error instead, tried many solutions and none work
- How to fix blocked cookies error that doesn’t let me log into wp-admin?
- WordPress Multi-Site on Ubuntu 18.04 LAMP Keeps Re-Directing
- Good way to block users within a multisite setup without deleting them?
- URL without www redirect directly with submission page – Multiwordpress install
- Multisite Redirection to new domains
- Nginx config, how can I redirect primary multisite domain, but not its sub-folders, nor other domains?
- Redirect One Multisite to Another
- Site redirecting to http://example.com/wp-signup.php?new=example.com
- WordPress Multisite + Erros with URLS and ADMIN
- Redirect old uploads after moving to multisite
- 301’s not working with multisite
- Automatically login user across multisite
- Multisite, Subdomain, shared NFS directory Linux HELP
- WordPress: how to change URL for individual MultiSites?
- How can you override the is_multisite check in wp-login.php for individual login/registration?
- How to split existing blog into WordPress Multisites without breaking links?
- Multisite Subdomain Redirect Mask
- Network Admin URL is shown to anyone before accessing a blog
- Cannot use Network Admin (Dashboard) on Multi-site after 301 www redirect
- 404 redirecting to home [closed]
- Multisite Login problem
- How to temporarily redirect front page of a network to one of the sites/blogs?
- Https and Http Login Issue on WordPress Multisite
- 301 Redirection After Comment
- Different Domains in Multisite Setup
- Multisite infinite redirect loop
- Multisite Redirect for Home Page Only
- Disable site visiting and user logins excepting for a specific user
- Working with Reverse Proxies and Multisite Installation
- How to redirect user after session timeout
- Infamous admin login redirect
- How to Force WWW. in Domain With WordPress MU Domain Mapping Plugin?
- Two installs conflicting – Pages redirecting
- Is there something I need to know in order to use WordPress on foreign (Swedish) TLDs?
- Restrict users of site 1 to login in site 2 in wordpress multisite