How To Redirect Nonexistent Blogs in WordPress Multisite
Did you know that WordPress has a NOBLOGREDIRECT constant that you can use to customize the URL it redirects to for nonexistent blogs? Add this to your wp-config.php file and change the URL to wherever you want to send your visitors.
{code type=php}
define(‘NOBLOGREDIRECT’, ‘http://example.com’);
Using this handy constant you can redirect to your home URL, a blog directory or any page that you think might help to get your visitor interested in staying on your site.
This is one of those really easy customizations that improves a new visitors experience on your website. Instead of landing on a 404 error page, the user can be sent to a more engaging page with information about your network. Any WordPress multisite admin can implement this quick customization in less than a minute.