Index: wp-admin/network.php
===================================================================
--- wp-admin/network.php	(revision 14411)
+++ wp-admin/network.php	(working copy)
@@ -237,14 +237,14 @@
 		echo '<div class="error">' . $errors->get_error_message() . '</div>';
 
 	if ( $_POST ) {
-		$vhost = !allow_subdomain_install() ? false : (bool) $_POST['subdomain_install'];
+		$subdomain_install = !allow_subdomain_install() ? false : (bool) $_POST['subdomain_install'];
 	} else {
 		if ( is_multisite() ) {
-			$vhost = is_subdomain_install();
+			$subdomain_install = is_subdomain_install();
 ?>
 	<div class="updated"><p><strong><?php _e( 'Notice: The Network feature is already enabled.' ); ?></strong> <?php _e( 'The original configuration steps are shown here for reference.' ); ?></p></div>
 <?php	} else {
-			$vhost = (bool) $wpdb->get_var( "SELECT meta_value FROM $wpdb->sitemeta WHERE site_id = 1 AND meta_key = 'subdomain_install'" );
+			$subdomain_install = (bool) $wpdb->get_var( "SELECT meta_value FROM $wpdb->sitemeta WHERE site_id = 1 AND meta_key = 'subdomain_install'" );
 ?>
 	<div class="error"><p><strong><?php _e('Warning:'); ?></strong> <?php _e( 'An existing WordPress network was detected.' ); ?></p></div>
 	<p><?php _e( 'Please complete the configuration steps. To create a new network, you will need to empty or remove the network database tables.' ); ?></p>
@@ -265,7 +265,7 @@
 			<li><p><?php printf( __( 'Add the following to your <code>wp-config.php</code> file in <code>%s</code> <strong>above</strong> the line reading <code>/* That&#8217;s all, stop editing! Happy blogging. */</code>:' ), ABSPATH ); ?></p>
 				<textarea class="code" readonly="readonly" cols="100" rows="7">
 define( 'MULTISITE', true );
-define( 'VHOST', '<?php echo $vhost ? 'yes' : 'no'; ?>' );
+define( 'SUBDOMAIN_INSTALL', 'false' ); 
 $base = '<?php echo $base; ?>';
 define( 'DOMAIN_CURRENT_SITE', '<?php echo $hostname; ?>' );
 define( 'PATH_CURRENT_SITE', '<?php echo $base; ?>' );
@@ -309,9 +309,9 @@
 RewriteRule ^index\.php$ - [L]
 
 # uploaded files
-RewriteRule ^' . ( $vhost ? '' : '([_0-9a-zA-Z-]+/)?' ) . 'files/(.+) wp-includes/ms-files.php?file=$' . ( $vhost ? 1 : 2 ) . ' [L]' . "\n";
+RewriteRule ^' . ( $subdomain_install ? '' : '([_0-9a-zA-Z-]+/)?' ) . 'files/(.+) wp-includes/ms-files.php?file=$' . ( $subdomain_install ? 1 : 2 ) . ' [L]' . "\n";
 
-if ( ! $vhost )
+if ( ! $subdomain_install )
 	$htaccess_file .= "\n# add a trailing slash to /wp-admin\n" . 'RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]' . "\n";
 
 $htaccess_file .= "\n" . 'RewriteCond %{REQUEST_FILENAME} -f [OR]
@@ -319,7 +319,7 @@
 RewriteRule ^ - [L]';
 
 // @todo custom content dir.
-if ( ! $vhost )
+if ( ! $subdomain_install )
 	$htaccess_file .= "\n" . 'RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
 RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]';
 
@@ -327,7 +327,7 @@
 
 ?>
 			<li><p><?php printf( __( 'Add the following to your <code>.htaccess</code> file in <code>%s</code>, replacing other WordPress rules:' ), ABSPATH ); ?></p>
-				<textarea class="code" readonly="readonly" cols="100" rows="<?php echo $vhost ? 11 : 16; ?>">
+				<textarea class="code" readonly="readonly" cols="100" rows="<?php echo $subdomain_install ? 11 : 16; ?>">
 <?php echo wp_htmledit_pre( $htaccess_file ); ?>
 </textarea></li>
 		</ol>
Index: wp-includes/ms-default-constants.php
===================================================================
--- wp-includes/ms-default-constants.php	(revision 14411)
+++ wp-includes/ms-default-constants.php	(working copy)
@@ -90,5 +90,26 @@
 	 */
 	if ( !defined( 'WPMU_ACCEL_REDIRECT' ) )
 		define( 'WPMU_ACCEL_REDIRECT', false );
-}
-?>
+
+	/**
+	 * Handling the deprecated VHOST constant.
+	 * @since 3.0.0
+	 */
+	if ( defined( 'VHOST' ) ) 
+		$vhost_deprecated = __( 'The constant <code>VHOST</code> <strong>is deprecated</strong>. Use the boolean constant <code>SUBDOMAIN_INSTALL</code> in wp-config.php to enable a subdomain configuration. Use is_subdomain_install() to check whether a subdomain configuration is enabled.' ); 
+	if ( defined( 'SUBDOMAIN_INSTALL' ) && defined( 'VHOST' ) ) { 
+		if ( SUBDOMAIN_INSTALL == ( 'yes' == VHOST ) ) { 
+			_deprecated_argument( 'define()', '3.0', $vhost_deprecated ); 
+		} else { 
+				trigger_error( __( '<strong>Conflicting values for the constants VHOST and SUBDOMAIN_INSTALL.</strong> The value of SUBDOMAIN_INSTALL will be assumed to be your subdomain configuration setting.' ) . ' ' . $vhost_deprecated, E_USER_WARNING ); 
+		} 
+	} elseif ( defined( 'SUBDOMAIN_INSTALL' ) ) { 
+		define( 'VHOST', SUBDOMAIN_INSTALL ? 'yes' : 'no' ); 
+	} elseif ( defined( 'VHOST' ) ) { 
+		_deprecated_argument( 'define()', '3.0', $vhost_deprecated ); 
+		define( 'SUBDOMAIN_INSTALL', 'yes' == VHOST ); 
+	} else {         
+		define( 'SUBDOMAIN_INSTALL', false ); 
+		define( 'VHOST', 'no' ); 
+	} 
+?>
\ No newline at end of file
Index: wp-includes/ms-load.php
===================================================================
--- wp-includes/ms-load.php	(revision 14411)
+++ wp-includes/ms-load.php	(working copy)
@@ -8,6 +8,7 @@
  * @subpackage Multisite
  */
 
+wp_default_constants( 'subdomain_install' ); 
 /**
  * Whether a subdomain configuration is enabled.
  *
@@ -16,10 +17,7 @@
  * @return bool True if subdomain configuration is enabled, false otherwise.
  */
 function is_subdomain_install() {
-	if ( defined('VHOST') && VHOST == 'yes' )
-		return true;
-
-	return false;
+	return SUBDOMAIN_INSTALL; 
 }
 
 /**
Index: wp-includes/wp-db.php
===================================================================
--- wp-includes/wp-db.php	(revision 14411)
+++ wp-includes/wp-db.php	(working copy)
@@ -575,7 +575,7 @@
 			foreach ( $this->tables( 'global' ) as $table => $prefixed_table )
 				$this->$table = $prefixed_table;
 
-			if ( defined( 'VHOST' ) && empty( $this->blogid ) )
+			if ( is_multisite() && empty( $this->blogid ) )
 				return $old_prefix;
 
 			$this->prefix = $this->get_blog_prefix();
