Skip to content

Instantly share code, notes, and snippets.

@zhonmaz
Created January 14, 2020 01:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zhonmaz/e0c198451213924906122ecac1a300b3 to your computer and use it in GitHub Desktop.
Save zhonmaz/e0c198451213924906122ecac1a300b3 to your computer and use it in GitHub Desktop.
<?php
$protocol = $_SERVER["SERVER_PROTOCOL"];
if ( 'HTTP/1.1' != $protocol && 'HTTP/1.0' != $protocol )
$protocol = 'HTTP/1.0';
header( "$protocol 503 Service Unavailable", true, 503 );
header( 'Content-Type: text/html; charset=utf-8' );
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<body>
<h1>We are updating the site, please check back in 30 minutes.</h1>
</body>
</html>
<?php die(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment