Monday, December 01, 2008 Login    Register

 


  Search Blog  
  Blog Listing  
  Blog Archive  
QualitySkinsLowPrice
  HOW TO: Take Your DotNetNuke® Site Offline  
Location: BlogsThe Mighty Blog    
Posted by: Will Strohl 7/8/2008
Ideally, we never want our web sites to be "down". However, there are the inevitable times when we need to manage something on the site, and we just can have anyone getting in the way. Here is a way that DotNetNuke® makes this easy...

Why would we need to bring our site "down", and make it unaccessible to the world?  The most common reason is that we need to alter something in IIS or on the file system, and a visitor being on the site may keep you from performing the task at hand.

Be aware though, that there are many ways to take a site offline.  But if you think it would be a better idea for DNN to do it for you, read on.  Keep in mind though, that this method brings the site down for everyone.  Even you.  If you need to bring it down for everyone except you, then I suggest implementing IIS IP address restrictions.

This is going to be a very, very, very, VERY complicated process, so be sure to pay extra special attention...  (not really)

The first step is to create a static HTML file with information regarding the outage.  A company logo and a simple "server undergoing scheduled maintence" message should do.

Here is an example that you can use:

<html>
<head>
    
<title>[YOUR COMPANY NAME] Web Site Outage</title>
    
<meta name="robots" content="noindex" />
    <
meta name="revisit-after" content="2 days" />
    <
style type="text/css">
        
#divWrapper1,#divWrapper2{position:static;display:block;width:100%;}
        
#divLeft{position:relative;display:inline;float:left;}
        
#divRight{position:relative;display:inline;float:right;}
    </
style>
</head>
<body>
    
<div id="divWrapper1"><div id="divLeft"><img src="images/logo1.gif" alt="[YOUR COMPANY NAME]" /></div><div id="divRight"><img src="images/logo2.gif" alt="[YOUR COMPANY NAME]" /></div></div>
    
<div id="divWrapper2"><h1>[YOUR COMPANY NAME] is experiencing technical difficulties</h1>
    
<p>We aplogize for the inconvenience. We are working hard to restore the web site for you as soon as possible.</p>
    
<p>Please check back with us in a few minutes.</p>
    
<p>Sincerely,<br />[YOUR COMPANY NAME] Staff</p></div>
</body>
</html>

Now, just save this on the root of your site with the filename of "app_offline.htm".  Once you do, any requests reaching the DNN directory will be responded to with your HTML file.  Just be sure you edit the META tags to tell the search engines to not index, and to return in a day.

Copyright ©2008 Will Strohl
Permalink |  Trackback

Your name:
Title:
Comment:
Security Code
Enter the code shown above in the box below
Add Comment   Cancel 
© Copyright 2004-2008 by Will Strohl. All rights reserved.