Using Microsoft's Internet Information Services (IIS) web
server software, we can make an application offline. The approach is to
instruct IIS to route all incoming requests (for ASP.NET pages, HTML pages,
images, and so on) for the web site to another URL automatically. For example,
assume we have an ASP.NET application hosted on a server; we can setup IIS so
that all requests to that application are rerouted to a different site or URL.
To configure an application to redirect all requests to
another URL, we have to do the following.
From IIS manager -> right-click on the application ->
choose Properties. From the Virtual Directory tab, indicate that the content
for this application should come from "A redirection to a URL." Then
enter the URL to redirect to and check "The exact URL entered above"
checkbox, as shown in the screenshot below. It should be noted that in shared,
hosted web environments we may not have the ability to edit IIS settings.