summaryrefslogtreecommitdiff
path: root/site-offline.php
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2011-10-13 12:09:37 +0000
committerfisharebest <fisharebest@gmail.com>2011-10-13 12:09:37 +0000
commit8c221dda91d88e077a231995f1cf9bf4c704694e (patch)
treeb74c02a80f260b190fa2e557cdbed2045721f3a3 /site-offline.php
parent579b8b0ada317c0fbf3c693dcd6622c8db040191 (diff)
downloadwebtrees-8c221dda91d88e077a231995f1cf9bf4c704694e.tar.gz
webtrees-8c221dda91d88e077a231995f1cf9bf4c704694e.tar.bz2
webtrees-8c221dda91d88e077a231995f1cf9bf4c704694e.zip
Search engines:
Fix bad HTML in headers for pages shown to search engines Send HTTP/403 instead of HTTP/302 for pages that are not allowed Only check for search engine once - simplifies theme headers
Diffstat (limited to 'site-offline.php')
-rw-r--r--site-offline.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/site-offline.php b/site-offline.php
index 35792ca630..61f093fb64 100644
--- a/site-offline.php
+++ b/site-offline.php
@@ -46,9 +46,8 @@ if (file_exists(WT_DATA_DIR.'offline.txt')) {
exit;
}
-
header('Content-Type: text/html; charset=UTF-8');
-header($_SERVER["SERVER_PROTOCOL"].' 503 Service Temporarily Unavailable');
+header($_SERVER['SERVER_PROTOCOL'].' 503 Service Temporarily Unavailable');
echo
'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">',