Bas sam pravio pre neki dan:
PHP kôd:
<?php
/*--- SETTINGS ---*/
$retry_after = 30; // In minutes
$message = "Site is currently undergoing scheduled maintenance. Please try again in about $retry_after minutes. Sorry for the inconvenience.";
/* ---------------- */
// send 503
header("HTTP/1.0 503 Service Unavailable");
header("Retry-After: ". ($retry_after * 60) );
?>
<!doctype html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Service Unavailable</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<h3 style="color:red">Service Unavailable</h3>
<p><?= $message ?></p>
</body>
</html>