diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2008-07-16 14:06:33 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2008-07-16 14:06:33 +0000 |
commit | 213933071163d6ab88c7175c9b41ffdad1622579 (patch) | |
tree | 9d830b8e6264b4e79f7b3deaff2ee566ea29bc7e /wp-config-sample.php | |
parent | c87e77c0105ba9e503f2cb69fdc72c54c0420a10 (diff) | |
download | wordpress-mu-213933071163d6ab88c7175c9b41ffdad1622579.tar.gz wordpress-mu-213933071163d6ab88c7175c9b41ffdad1622579.tar.xz wordpress-mu-213933071163d6ab88c7175c9b41ffdad1622579.zip |
Don't redirect main blog 404s and unknown blogs to signup page by default.
Added "is_main_blog()" function
Redirect to NOBLOGREDIRECT on main blog 404 and unknown blog if that constant set, fixes #677
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1377 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-config-sample.php')
-rw-r--r-- | wp-config-sample.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wp-config-sample.php b/wp-config-sample.php index fc75fec..b622897 100644 --- a/wp-config-sample.php +++ b/wp-config-sample.php @@ -35,8 +35,8 @@ define ('WPLANG', ''); // uncomment this to enable wp-content/sunrise.php support
//define( 'SUNRISE', 'on' );
-// Uncomment and set this to a URL to redirect if a blog does not exist. (Useful if signup is disabled)
-// Browser will redirect to constant( 'NOBLOGREDICT' ) . "?new=blogname" where blogname is the unknown blog
+// Uncomment and set this to a URL to redirect if a blog does not exist or is a 404 on the main blog. (Useful if signup is disabled)
+// For example, browser will redirect to http://examples.com/ for the following: define( 'NOBLOGREDIRECT', 'http://example.com/' );
// define( 'NOBLOGREDIRECT', '' );
define( "WP_USE_MULTIPLE_DB", false );
|