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?)
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?)
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.