[Best practice] Maintenance page |
[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
[eluser]n0xie[/eluser]
Why not do it like us. In the root have your index.php and your maintenance.php. If you want to do stuff add this line to mod_rewrite at the very top: Code: RewriteRule ^(.*)$ maintenance.php [L] When you're done, just comment it until you need to do another maintenance job...
[eluser]Clooner[/eluser]
[quote author="n0xie" date="1254319089"]Why not do it like us. In the root have your index.php and your maintenance.php. If you want to do stuff add this line to mod_rewrite at the very top: Code: RewriteRule ^(.*)$ maintenance.php [L] When you're done, just comment it until you need to do another maintenance job...[/quote] That is also a good option. I use a slightly extended version of my one click deploy system which automatically replaces the index.php files needed and places it back after the update. So I actually don't need to do anything except sit back and relax ![]()
[eluser]n0xie[/eluser]
[quote author="clooner" date="1254319428"]I use a slightly extended version of my one click deploy system [/quote] That's pretty nice actually
[eluser]www.sblog.in[/eluser]
Example http://www.webtuts.in/display-site-maint...deigniter/ |
Welcome Guest, Not a member yet? Register Sign In |