How to put an website in maintenance mode

14 May 2017 , ,

If you need to take your website offline, for any reason (eg. database maintenance, site move etc), you can do so very easily by just creating one .htm file and dropping in the root folder of your website.  Here’s what you need to do:

How to create a maintenance notice

  1. Create a blank HTML file called ‘app_offline.htm’, without the quotes.
  2. Open the file in your chosen editor (eg. Visual Studio, Notepad++, Dreamweaver etc).
  3. The ‘app_offline.htm’ file must be structured as a valid HTML format, like the below example.
    <title>Website name</title>
    <div style="text-align:center;">
    This website is currently offline for maintenance. Please try again later.
  4. Make sure you change the contents of the title tag as well as changing the message.

How to activate the maintenance notice

To activate the maintenance notice that you created using the above steps, simply upload it to the root folder of your website.

If the maintenance message does not show, you may need to restart your sites application pool.

How to deactivate the maintenance notice

To de-activate the maintenance notice, simply deleted the ‘app_offline.htm’ file from the root folder of your website.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.