I have a multi site setup to which I have placed
define( 'NOBLOGREDIRECT', 'http://www.example.com' );
In the wp-config.php file
However when I visit a site which dose not exist (e.g. http://nosite.example.com) I'm greeted with the following
Error establishing a database connection
Instead of being redirected to the homepage as defined.
I have disabled all plugins and reverted back to the default .httaccess however this has not solved the issue.
How can I solve this and have a none existing subsites redirected to the appropriate location?