Thursday, July 26, 2012

Maintenance Page for SharePoint - Quick way to Implement

Here is the quick way to implement Maintenance page in SharePoint, during scheduled down times/upgrade/service pack patching: Create a new app_offline.htm file in IIS Root folder of your SharePoint site. Place some descriptive text/images to the file, Make sure the file size is at least 512 bytes (otherwise, you will get 404 page not found error!). That's all!
maintenance page sharepoint 2010

I've placed the maintenance page content like this:

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Site Under Maintenance</title>
</head>

<body>
<div align="center"><br />
  <br />
  <br />
  <br />
  <img src="http://testIntranet.crescent.com/images/maintenance.gif" width="600" height="300" /></div>
</body>
</html>

and the output: Maintenance page for SharePoint 2010/2013
sharepoint display maintenance page
maintenance page SharePoint 2010

As long as this file exists in the root, ASP.NET shuts down the site, stops processing any requests. So, After the maintenance activity, Just delete the app_offline.htm file to end up the maintenance mode.

For some reasons, If this doesn't work for you: Create a dummy website in TEST environment, assign the PROD site's Host headers, Place the above content in Index.htm, change the IP addresses in publishing server! (ISA/ F5).



You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.
*Sponsored


Check out these SharePoint products:

2 comments :

  1. Howdy!I just wanted to tell Thank you sooooooo much for this wonderful blog!

    Carry on the superb job!

    Mohamed Rady

    ReplyDelete
  2. Nice Post Saludeen,

    may I know how to display that maintenance page only to end user and developer can able to work with that site once logged in

    ReplyDelete

Please Login and comment to get your questions answered!

You might also like:

Related Posts Plugin for WordPress, Blogger...