Using the line define('NOBLOGREDIRECT', '%siteurl%');
in your wp-config.php
makes it so that when someone enters a subdomain that does not exist on your site, it will redirect to whatever url you specify. You can use this to have it either go to a specific FAQ page or directly back to the main root installation, anywhere you want to direct it. the variable %siteurl%
can be replaced; for example define('NOBLOGREDIRECT', 'http://frumph.net/FAQ/site-create');
When someone in their browser tries to go to a subdomain that doesn't exist (for example, http://badsubdomain.frumph.net/), they will be redirected to what is defined for NOBLOGREDIRECT
.
Without using NOBLOGREDIRECT
the (for example) http://badsubdomain.frumph.net/ – which is a subdomain that doesn't exist would direct to the signup page asking which reports whether or not the user can create the bad subdomain in question. This is fine, there's nothing wrong with it redirecting to the signup page if someone put in a bad url. However, those of