I want to create a down for maintenance page in asp.net mvc so whatever the reques开发者_JS百科t is it will point it to Home/Down
What router configs I need to set in global.cs file?
You could use an App_Offline.htm file. Simply upload an html file with this name to the route of your ASP.NET application and all requests will route to it. When you are ready to put your site back online simply delete the file. There's a small gotcha you should be aware of when using App_Offline.htm
file with an ASP.NET MVC application.
精彩评论