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
- 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
- Domain redirect in WordPress multisite
- Suppress subdirectory from WordPress Multisite primary URL
- WordPress Multisite Login Access
- Why wordpress multisite redirect to wp-signup if site exists?
- WordPress multisite htaccess
- Multisite without .htaccess
- 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
- 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
- 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?
- 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_rewrite_rule on multisite doesn’t work
- 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
- 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
- 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
- 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
- Run additional service on domain with WordPress Multisite?
- WordPress sub-domain multisite 505 error
- Redirect to localhost after installing Multisite on server
- WordPress: how to change URL for individual MultiSites?
- 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
- Multisite sub-directories IIS 7.5 change media/uploads location
- Multisite install w/ Sub domains on a subdomain
- Multisite Subdomain Redirect Mask
- 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
- 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?
- How to fix redirection of Post/Page of wordpress inside the wordpress?
- Multisite htaccess file causing segfault (Segmentation fault 11)
- Rewriting request to another site
- Getting file errors in a WordPress Multisite ADMIN
- trying to install a wordpress multisite in a subfolder and have custom subsite urls
- Events Calendar Multisite 404 for events
- Multisite htaccess with domain rewrites
- Multisite,half the way
- How to add WordPress site to multisite network when both are addon domains
- Nginx rules for subdomain multisite install (Bedrock)
- How To Change the URL of a WordPress Multisite
- Multisite, different domains, optional subdirectory, and htaccess
- Built-in Sitemap on Multi-site install produces 404?
- WP Multisite .htaccess interferes with cgi-bin
- Redirect extra url to Multisite in folder
- How to set up wp multisite?
- first load of the page gives 404 error
- Permalinks in Multisite not working
- Subdomain add comment redirect to 404 not found page iis server
- Multisite website configure Domain issue
- External rewrite rules missing in htaccess – Multisite
- I’m getting a 404 NOT_FOUND CODE: ‘DEPLOYMENT NOT FOUND on wordpress multisite installation on my sub domain