2009/6/22 vinodp <[email protected]>: > > hi all, > in a zend framework based website, what should be approach to disable > website during maintainance. during this visitor will only see, down for > maintaince notice. > > should it be to have a flag in application.ini file, like website.disabled > and in Bootstrap.php > redirect all request to 503 service unavailable or custom message when the > flag is set. > > or any better approach?
Yes, you can do a 503 redirect in your .htaccess file. Use ErrorDocument 503 /path/to/notice.html for your "down for maintenance" message. > > -- > View this message in context: > http://www.nabble.com/How-to-disable-website-during-maintainance-tp24148940p24148940.html > Sent from the Zend Framework mailing list archive at Nabble.com. > > -- Regards, Martin Martinov http://mmartinov.com/
