Knowledgebase: DotNetNuke
Setting an Under Construction Page
Posted by DNN4Less Support Engineer Jessie on 22 March 2021 04:08 PM

Setting “Under Construction” page to a DNN site

1.Take a backup of webfiles and database.

2. Paste the following code in a new text file.

<!doctype html>
<title>Under Construction</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>

<article>
<h1>Under Construction!</h1>
<div>
<p>Sorry for the inconvenience. We will be back online shortly!</p>
</div>
</article>

3. Save the file as “App_offline.htm”.
4. Copy the file to httpdocs folder of the domain.
5. As soon as the file is created, the web application will be shut down and the user only sees the content of the app_offline.htm file.
6. Call the site in browser and you will be viewing the under construction page.
7. After the work/update has been concluded, just delete or rename the file. You don’t need to create a new file every time for having the maintenance page.
Just rename it to App__offline.htm (e.g. with double underscore) and switch it back to App_offline.htm when needed it for the next update.

Note: You can edit the script given above according to the requirement.

(0 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).