Redirect Visitors to a Temporary Maintenance Page

Posted by Prem Tiwari | Updated on

How to Redirect Visitors to a Temporary Maintenance Page

The previous answer is complete and well written. Anyhow if you are like me and you want to have everything in one place you can drop the following lines in the function.php file and create a maintenance.php file in your theme directory.

This is especially useful if your Git repository points just to the theme directory.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers