Context:: When you have to maintenance on your site
When updating your site, it is generally a good thing to temporarily redirect your users to a “Maintenance” page so they will not see any critical info such as error messages.
This is generally done using an .htaccess file, but it can be done easily with PHP:
Dependencies:: – link to any other code or packages that are relevant or that you need to use this snippet