On occasion, we need to take a site offline in front of Craft. For instance, if a big deployment is required, and we need to be able to respond to the visitor with an "offline" message without hitting Craft. With a simple, static "offline" HTML file available in /web, it's easy to create a symlink of index.php and point to this offline file during the deployment.
On occasion, we need to take a site offline in front of Craft. For instance, if a big deployment is required, and we need to be able to respond to the visitor with an "offline" message without hitting Craft. With a simple, static "offline" HTML file available in
/web, it's easy to create a symlink ofindex.phpand point to this offline file during the deployment.