• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 10672
  • Last Modified:

How to show Website under construction


I've been asked to bring a website down by the President. The site is hosted on IIS 6.0 and is hosted internally to the network. The site should be running but when the people go to www.mydomain.com the page should display "Page under construction". So i followed someone advice by creating a default document (default.html) with my under construction message and placed that in the web root of the website on the server. Then in IIS, went to the properties for the website. On the Documents tab, selected the entry for DEFAULT.HTML and click the up arrow to bring that to the top of the list of default documents. Applied the changes and did a CTRL-F5 in the browser to do a full refresh. This worked! 1 week later my boss did a google search and clicked on the link and the website is up and running with no construction page. The link has /about.html and it brought  her to the website.
How can i show website under construction on all links for the website?

1 Solution
One way to do this is to change your defalt website's listening port to something other then 80 (i.e. 8080)

then create another site under IIS with "under construction" as the default (and perhaps only) file. The new site should be set by default to listen on port 80. Test your site by typing in the url with about.html you should get a page not found.

As long as your other pages are available and reachable by incoming links, Google and others will find them.  If you don't want a page to show up, replace it with the under construction page.
Another way would be to include a file to your header (or masterpage if you are using asp.net) and check for the visitors IP address. If it matches your company's IP then show the content (e.g. real website) if not redirect to the default.htm that shows your under construction page. This way all your pages will use your include and check if its allowed to be viewed or not, even links coming from Google.

The easiest way is to remove all your documents out of the Directory where your website is at. Leave only your Default.html

Then, under the Custom Error tab in IIS, set the 404 Error to point to your Default.html

This way, anyone trying to link to the original website, whether from Google, or from saved links, will go to your Under Construction page...
Tacobell2000Author Commented:
Right on BamBamHR.

Featured Post

Transaction-level recovery for Oracle database

Veeam Explore for Oracle delivers low RTOs and RPOs with agentless transaction log backup and transaction-level recovery of Oracle databases. You can restore the database to a precise point in time, even to a specific transaction.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now