If we try to access a non-existant Multisite site, e.g.,
http://example.com/site1/, we are redirected to
How to block this and redirect the browser to another page?
An alternative (maybe better) is to use the following constant in
At the very beginning of
So, it's just a matter of adding the
Here, wrapped as a Must Use Plugin: