Simple and effective maintenance page for websites
- PHP 5.6.0+
-
Copy the file
Source/maintenance.php
to some subfolder of your website -
During actual maintenance (or for testing), just redirect all requests to
maintenance.php
-
Apache (in
.htaccess
orhttpd.conf
)RewriteEngine On RewriteRule . maintenance.php [END]
-
Nginx (in
nginx.conf
)try_files $uri /maintenance.php;
-
All contributions are welcome! If you wish to contribute, please create an issue first so that your feature, problem or question can be discussed.
This project is licensed under the terms of the MIT License.