How can I indicate to users that my IIS website is undergoing maintenance?

前端 未结 5 1477
感情败类
感情败类 2020-12-01 02:49

For my IIS website, I\'d like to redirect ALL requests to ONE page. The purpose of this is that I want to do some maintenance on the database (take it off-line) that all my

5条回答
  •  生来不讨喜
    2020-12-01 03:25

    Make all the pages un-available, probably stop the current web site and create an entire new completly blank site in its place. Then put up a custom error page for the 404 (file ot found) error. Custom Errors is a tab on the properties dialog of the web site in IIS. Just create the page you want to send, then change the entry for 404 on the custom errors tab to point to the new file you just created.

提交回复
热议问题