From faf95e268e4aa07ee9827d7d3182bdf64c37fd3a Mon Sep 17 00:00:00 2001 From: bernte Date: Sun, 17 Nov 2013 17:49:27 +0100 Subject: [PATCH] Update index.php 503 is the correct server response for "We're closed". If you substitute a normal HTML page saying "We're closed" and serve a 200 it's very likely to get indexed by Google. If you give the Googlebot a 503, it will just go away and come back later without indexing what you give it. --- index.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.php b/index.php index baa02e0..0a87401 100644 --- a/index.php +++ b/index.php @@ -45,6 +45,9 @@ if (file_exists('install.php')) { if ((Session::exists('user_role')) and (Session::get('user_role') == 'admin' or Session::get('user_role') == 'editor')) { // Monstra show this page :) } else { + header('HTTP/1.1 503 Service Temporarily Unavailable'); + header('Status: 503 Service Temporarily Unavailable'); + header('Retry-After: 600'); die (Text::toHtml(Option::get('maintenance_message'))); } }