summaryrefslogtreecommitdiffstats
path: root/index-install.php
diff options
context:
space:
mode:
Diffstat (limited to 'index-install.php')
-rw-r--r--index-install.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/index-install.php b/index-install.php
index f35f192..9862dfd 100644
--- a/index-install.php
+++ b/index-install.php
@@ -4,6 +4,9 @@ if( strpos( $_SERVER["REQUEST_URI"], 'index-install.php' ) ) {
header( "Location: index.php" );
die();
}
+if( $_SERVER[ 'HTTP_HOST' ] == 'localhost' ) {
+ die( "<h2>Warning!</h2> Installing to http://localhost/ is not supported. Please use <a href='http://localhost.localdomain/'>http://localhost.localdomain/</a> instead." )
+}
define('WP_INSTALLING', true);
function printheader() {