Welcome Guest, Not a member yet? Register   Sign In
[Best practice] Maintenance page
#1

[eluser]Clooner[/eluser]
Before updating a website I always replace the index.php by a maintenance page. After I finished the update I always place the original index.php back again. Because I use mod_rewrite it will always show the maintenance page. I would like to share my maintenance page and maybe make some improvements on this. Maybe someone has suggestions to improve on this. I just center a background image(which contains the message) inside the body to place the message smack in the middle.

Code:
<?php
header("HTTP/1.1 503 Service Temporarily Unavailable");
header("Status: 503 Service Temporarily Unavailable");
header("Retry-After: 86400");
?>
<html>
<head>
  <title>503 - Deze website is tijdelijk niet beschikbaar</title>
<style>
  body { display:block; padding:0px; margin:0px; height:100%; width:100%; display:block; background:url(http://arie.nl/maintenance.png) center no-repeat #3f3f3f; }
</style>
</head>
<body>
</body>
</html>


Messages In This Thread
[Best practice] Maintenance page - by El Forum - 09-30-2009, 02:48 AM
[Best practice] Maintenance page - by El Forum - 09-30-2009, 02:58 AM
[Best practice] Maintenance page - by El Forum - 09-30-2009, 03:03 AM
[Best practice] Maintenance page - by El Forum - 09-30-2009, 03:42 AM
[Best practice] Maintenance page - by El Forum - 07-23-2014, 11:39 PM



Theme © iAndrew 2016 - Forum software by © MyBB