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
- How to disable Multisite sign-up page?
- WordPress multisite,several different languages,page redirect?
- WordPress multisite subdirectory redirect infinite loop issue
- 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
- 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
- Sub-subdomain getting redirected to main domain
- Subdomain login problems
- WordPress Multisite local: wp-login.php refreshes on login Chrome Browser
- 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
- Multisite, multiple domains per site
- Multisite Network menu links not updating
- Login on Multiple Sub-Domains without Multisite
- Fresh Multisite Install – Can’t Log In
- https redirect hell (adding www)
- WPMU Development Environment
- Redirect subdomain in Multisite installation?
- 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
- 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?
- How to fix blocked cookies error that doesn’t let me log into wp-admin?
- Multisite Redirection to new domains
- Nginx config, how can I redirect primary multisite domain, but not its sub-folders, nor other domains?
- Site redirecting to http://example.com/wp-signup.php?new=example.com
- Redirect old uploads after moving to multisite
- Automatically login user across multisite
- WordPress: how to change URL for individual MultiSites?
- How to split existing blog into WordPress Multisites without breaking links?
- Network Admin URL is shown to anyone before accessing a blog
- 404 redirecting to home [closed]
- How to temporarily redirect front page of a network to one of the sites/blogs?
- 301 Redirection After Comment
- Different Domains in Multisite Setup
- Multisite infinite redirect loop
- 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
- Restrict users of site 1 to login in site 2 in wordpress multisite
- Unable to execute Ajax request, status code 400
- How to display custom logo on WordPress login page
- Redirect a WordPress Multisite url after it has been change to a new one
- Redirect Function Prevents Images from Showing in Front-end Media Uploader
- multisite 404 subfolder same name slug as site
- After switch domain, some parts of my site still point to my old domain
- How to make the redirects right? IP to domain name folders
- WordPress multisite redirect one custom non www domain to www
- Multisite (with nested paths) wp-admin redirect loop
- Multisite – site user limited only for this site
- Unable to sign in to network after moveing address but able to login into child sites
- Single sign on to sub-sites in Multisite Network
- How do I point two urls to the same child site in a multisite config
- WordPress Network with SSL for multiple domains
- Redirecting two Multisite domains to Single site on different host
- Why does this multisite redirection loop vanish when I add “www.”?
- Multisite install in a subfolder won’t work with www
- One login for 3 WordPress installations with combined user table doesn’t work
- WordPress Multisite redirect loop
- How to login a user with wp_set_auth_cookie on a specific blog within a multisite environment
- Make a select where the options are the different multisites
- Is there a way to have wordpress 301 versus 302 urls by default?
- Pages redirect me to the homepage
- Is it possible to create a login for restricted visibility?
- How do I combine wp_redirect and add_filter?
- Multisite redirect loop for a single www domain
- Some Subdomains on a Multisite Install Not Found
- Development (multi)site indexed – recommendations to redirect 301 to correct url?
- WordPress 3.0 Multisite – Child sites and backends appearing blank
- Nice font not working when http to https – SSL Issue
- Subdomain add comment redirect to 404 not found page iis server
- Best Way to Setup a Network of WP Sites?
- WordPress Multisite restict user access
- Error Message when logging into WordPress on Xampp
- Multisite Primary Domain Broken All Subsites Work
- Make multisite non-existing subdomains go to homepage instead of Index of/ page
- WordPress MU: Cookie error when trying to login on network WP instance