There is currently a bug in the functionality that handles the NOBLOGREDIRECT
constant, which causes 404 errors on the main site to be redirected to the value of the constant. Apparently this is the expected behaviour for sub-directory networks (example.com/subsite
), but should not take place on subdomain networks (subsite.example.com
).
There is a WordPress Trac ticket (#21573) concerning this bug, but there is no indication on when it might be resolved. Until then, you can resolve this error yourself by removing the maybe_redirect_404
function:
remove_action( 'template_redirect', 'maybe_redirect_404' );
This code should go in a .php
file in the wp-content/mu-plugins
directory. Remember to include a <?php
tag at the beginning of the file.
Related Posts:
- Issue with htaccess redirection in WP Multisite
- 404 redirecting to home [closed]
- multisite 404 subfolder same name slug as site
- Subdomain add comment redirect to 404 not found page iis server
- Show 404 when someone visits a non-existant Multisite site
- Redirect Main Site to Subsite in Multisite WordPress
- Why is WordPress Multisite redirecting to wp-signup.php and how to fix it?
- multisite 404 error for subdirectory
- How to disable Multisite sign-up page?
- WordPress multisite,several different languages,page redirect?
- WordPress Multisite – Multiple subfolders for blogs
- WordPress multisite subdirectory redirect infinite loop issue
- 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 – Redirect All Users to Subsite Home Page on Subsite Login
- 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)
- Why wordpress multisite redirect to wp-signup if site exists?
- Subfolder multisite issue. Themes and plugin files 404
- Subsites in Multisite installation throwing 404 error on wp-admin in IIS 7
- Multisite installation on IIS gives 404 trying to access the admin dashboard
- Sub-subdomain getting redirected to main domain
- Multisite network admin – URL / redirect error
- Preview posts returns 404
- 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
- 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
- Multisite new sites not found(404), main site still works [closed]
- How to disable the default WordPress redirect to non-www URLs?
- https redirect hell (adding www)
- Auto Redirect after login
- Error 404 on Network Admin and others
- 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
- Multsite redirecting to the main site
- Multisite setup help – plain domain/subsite always redirects to domain with subdir multisite
- Can’t view network plugins.php or upgrade-core.php on 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)
- Multisite – 404 when accessing sub-sites
- Redirect Site Geologically
- How to configure Multisite Network with randomized hostnames?
- WordPress Multisite Strange Redirect on Primary Site
- Wrong Redirect/Rewrite Rules?
- WordPress multisite on IIS – can’t open subpages
- Htaccess file isn’t redirecting http sub-pages to https––they display 404 error instead, tried many solutions and none work
- WordPress Multi-Site on Ubuntu 18.04 LAMP Keeps Re-Directing
- Some PDF files get Forbidden Access and other open normally on the same directory subsites
- 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
- Multisite, Subdomain, shared NFS directory Linux HELP
- WordPress: how to change URL for individual MultiSites?
- Multisite sub-directories IIS 7.5 change media/uploads location
- How to split existing blog into WordPress Multisites without breaking links?
- How to write RewriteRule for login in multisite
- 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
- How to temporarily redirect front page of a network to one of the sites/blogs?
- 404 on page 2 multisite
- 301 Redirection After Comment
- Multisite 404 page
- Multisite Redirect for Home Page Only
- 404 not working on main site on multisite
- Working with Reverse Proxies and Multisite Installation
- How to redirect user after session timeout
- How to Force WWW. in Domain With WordPress MU Domain Mapping Plugin?
- Two installs conflicting – Pages redirecting
- Redirect a WordPress Multisite url after it has been change to a new one
- Redirecting specific sites to HTTP in WordPress Multisite
- Redirect Function Prevents Images from Showing in Front-end Media Uploader
- 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
- Multisite network admin login redirect
- Multisite wp-admin redirecting to main wp-admin using NGINX
- How to convert multisite subdomain from http to https