How to take down a web site temporarily

Sunday, October 16, 2005

Usually I rename web.config to web.config.bak while I make major changes to a web site. This causes an error page to anyone hoping to visit the site that I am modifying. In ASP.NET 2.0 you can take your web site offline and redirect traffic to a page that you can control its content (i.e. not an ASP.NET error page) simply by adding a web page called App_Offline.htm.

Thanks to Erik Porter’s Blog for pointing this out.

ASP.NETasp.net

This work is licensed under CC BY-NC-SA 4.0

Input type=file value

MCMS Links