How do I config Yii to redirect every page to a static page when I maintain the server or database.
How do I config Yii to redirect every page to a static page when I maintain the server or database.
An .htaccess rule perhaps?
see this : CWebApplication::catchAllRequest
If you do that, don’t forget to cast a 503 (Service Unavailable) http response code.