2

My site is on a shared host and I need to do some maintainance work, which needs downtime.

For SEO reasons I need to cause a 503 http response to be sent to clients.

How can I do that from my web.config file (or any other method?)

Ward - Trying Codidact
  • 12,899
  • 28
  • 46
  • 59
Irena
  • 41
  • 3

1 Answers1

0

When you use the built-in IIS functionality of the "app_offline.htm" file in the root of the web site, all requests will service that page, and it will return a 503.

Greg Askew
  • 35,880
  • 5
  • 54
  • 82