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.
Asked
Active
Viewed 1,628 times
1
-
Possible duplicate of [Custom WCF Landing Page when Hosted in IIS 7.5](https://stackoverflow.com/questions/18533783/custom-wcf-landing-page-when-hosted-in-iis-7-5) – pegla Sep 23 '17 at 04:54
1 Answers
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.

Noxor
- 61
- 1
- 7