The cause of your problems is this line:
define( 'NOBLOGREDIRECT', 'http://www.ncc.my' );
If a user visits a blog that doesn’t exist, e.g. http://example.ncc.my this is where the user is sent. However there are also sub directory installs, so all requests that aren’t found are sent there.
The easy fix would be to set up a page called 404 at ncc.my/404 and then change the define to:
define( 'NOBLOGREDIRECT', 'http://www.ncc.my/404' );
The code fix, which is almost as easy, but gives exactly what you want is to create an MU plugin that removes a filter. To do this, create a file called fix404s.php
inside the wp-content/mu-plugins
folder ( you may need to create the mu-plugins
folder. Inside it, put:
<?php
remove_action( 'template_redirect', 'maybe_redirect_404' );
?>
Credit to this blog post for that fix. With that file and those contents in place, your issue should dissapear
Related Posts:
- multisite 404 error for subdirectory
- Issue with htaccess redirection in WP Multisite
- Multisite – 404 when accessing sub-sites
- Some PDF files get Forbidden Access and other open normally on the same directory subsites
- multisite 404 subfolder same name slug as site
- Site Redirecting to wp-signup.php
- Moving a WP Multisite to a subdirectory
- Multisite htaccess on localhost with WP as an SVN external?
- WP-Admin not working properly at WordPress multisite with subdirectories
- Multisite Subdomains result in 403 Forbidden
- WordPress Multisite – Multiple subfolders for blogs
- WordPress multisite subdirectory redirect infinite loop issue
- Multisite: Develop locally using production images with .htaccess
- Multisite 404 errors and non-www redirecting to home page
- multisite htaccess 301 redirects
- How to prevent hotlinking with htaccess in WordPress and why most common use about it doesn’t work?
- Multisite wordpress and subdomain URL collisions
- Error 101 after upgrading WordPress
- W3 Total Cache Plugin with WP 3 MultiUser [closed]
- Nginx rules for subdomain multisite install (Bedrock)
- Protect Uploads in Multisite
- Basically the opposite MultiSite URL question that most people ask
- Domain redirect in WordPress multisite
- Suppress subdirectory from WordPress Multisite primary URL
- 500 error when using virtual host
- WordPress Multisite Login Access
- Why wordpress multisite redirect to wp-signup if site exists?
- WordPress multisite htaccess
- Multisite without .htaccess
- Subfolder multisite issue. Themes and plugin files 404
- Subsites in Multisite installation throwing 404 error on wp-admin in IIS 7
- .htaccess 301 vs. 302 Enforcing HTTPS
- Multisite installation on IIS gives 404 trying to access the admin dashboard
- Images uploading to wrong directory after changing to multisite
- Sub-subdomain getting redirected to main domain
- Members area with externally-managed htaccess / htpasswd authentication?
- How to properly force https and www on multisite with Apache HTAccess
- wordpress htaccess is hijacking my .mp4 files
- Preview posts returns 404
- How to exclude a directory from WordPress permalinks in a Multisite environment?
- WordPress mutisite migration
- Dissolve Multisite while making site #5 the main site?
- Multisite, can’t see sub blogs
- Multisite new sites not found(404), main site still works [closed]
- How to disable the default WordPress redirect to non-www URLs?
- Create rewriterules for different domains in htaccess file with WP multisite
- WordPress multisite in subdirectory, not root, and remove base folder from url
- Error 404 on Network Admin and others
- Redirect subdomain in Multisite installation?
- Multisite installation not in root – how to make live?
- Redirect only posts to New Domain
- Multisite on localhost using xampp
- Multisite setup help – plain domain/subsite always redirects to domain with subdir multisite
- Add additional non-rewrite .htaccess directives on multisites via mod_rewrite_rules filter
- add_rewrite_rule on multisite doesn’t work
- Can’t view network plugins.php or upgrade-core.php on multisite
- Temp URL Redirect Loop
- Error uploading files bigger than 58 MB
- WordPress Multisite’s in subdirectory not redirecting to dashboard settings
- .htaccess rules for blocking bots with an extra condition
- 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
- What happens if I use .htaccess of network multisite on a single site installation?
- htaccess file for multiple CMS’s (multisite wordpress + wolfcms) on same domain but different subdirectories
- Wrong filepaths and admin page infinite reload after migrating to aws bitnami
- URL redirect/rewrite rule wordpress multisite
- WordPress multisite .htaccess causes 500 error on old *.php URLs
- URL without www redirect directly with submission page – Multiwordpress install
- Multisite Redirection to new domains
- Multisite Subdirectory with same domain subdomain
- Run additional service on domain with WordPress Multisite?
- Redirect old uploads after moving to multisite
- WordPress sub-domain multisite 505 error
- Redirect to localhost after installing Multisite on server
- WordPress: how to change URL for individual MultiSites?
- Multisite Create Site not working
- How to host unrelated pages on WordPress domain
- How to protect specific uploaded files from being accessed by non-logged-in users in WP-multisite
- URL for images folder on Multisite
- Multisite sub-directories IIS 7.5 change media/uploads location
- Multisite install w/ Sub domains on a subdomain
- Multisite Subdomain Redirect Mask
- Help with multisite redirect issues using Cherokee OR solid nginx config?
- Canonical Resource URLs Across a Multisite Network 2012?
- Cannot use Network Admin (Dashboard) on Multi-site after 301 www redirect
- 404 redirecting to home [closed]
- Hosting 2 WordPress websites in /public_html/ & /public_html/subdirectory/ at the same time
- MULTISITE SUB-DOMAIN JUST SHOWS INDEX OF -> CGI-BIN INSTEAD OF SHOWING SITE
- Multisite Sub domains not working
- Missing images after moving servers
- 404 on page 2 multisite
- How to Deny Access to No Referrer Requests on Multiste with Mapped domains
- Multisite Subdirectory Site Dashboard redirect loop
- How do I correctly configure my AMPPS localhost to use subdomains for multisite?
- Update WP install to WP network & it broke the DB connection
- Multisite 404 page
- Working with Reverse Proxies and Multisite Installation
- WordPress Multisite and how to apply sef urls only to specific sites
- How many .htaccess files should a WordPress multisite (subdirectory set up) have?