1

Is it possible to disable the default web page? Our security specialist does not want the default landing page to appear. This is using .NET Web API with IIS 8.0.

1

1 Answer 1

3

If you dont want the default page to exist, you can just delete the controller or change its actions. (Controllers/HomeController/Index)

If you dont want to be routed there, change route mapping in RouteConfig (it is set there as a default - defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional })

In both those cases you will see error page if you dont change configuration to match.

If you want some specific page to load after you start project in VS, change Project->Properties->Web->Start URL

Maybe read something about routing in ASP.NET. This looks like starter info.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.