a real “system closed for maintenance” page

actually, vB have this stupidly generated page with a “the board is closed” message we can edit… but if the database is dead, or the site need to be closed efficiently, this is completely useless…

what good thing would be to have a switch… we have a default error page generated in error.html, and it is over-written with the new default style when the templates “headinclude, header, footer” are edited… so we’re sure it fit the look of the site anyway.

this generated error.html is linked to a .htaccess file (error 405 etc) and if the admin set the site to closed, the htaccess file is edited to redirect everybody on error.html … nothing more.

this way, even if the db is dead, the error page will display properly.

Views: 9

Laisser un commentaire

Ce site utilise Akismet pour réduire les indésirables. En savoir plus sur comment les données de vos commentaires sont utilisées.

En savoir plus sur Un Papa Pro

Abonnez-vous pour poursuivre la lecture et avoir accès à l’ensemble des archives.

Continue reading