test subdomain sonny.condo.com.my – fail
sub -dir condo.com.my/sonny/ (work)
Did you choose subdomain installation, or subdirectory/path installation?
I’m asking because you seem to be testing both.
sub domain installation ….
i just try to figure what is happen, when i click on visit mysite, it go to subdomain but fail to load(point)
Then you didn’t configure your subdomain correctly.
Note that WordPress Multisite subdomains are virtual. So there should be no separate physical directories for these subdomains: they should all resolve to the primary domain’s document root.
There are generally two ways to do this:
1) Purely DNS (CNAME record): Point *.example.com to example.com
2) DNS (A record) + vhost: Point *.example.com to the server IP, but ALSO setup a vhost for *.example.com. Crucially, make sure that the document root for *.example.com is the same as that of example.com.
However you do it, the request for a subsite needs to go to the primary WordPress installation before WordPress can take over and redirect it to the appropriate subsite (if there’s one for the subdomain).
This means that even before creating any subsite, going to https://anything.example.com should redirect you to https://example.com for WordPress to respond that the requested subsite does not exist. If this is not happening, then your DNS and/or vhost setup is faulty.