I've been working on a ASP.NET web application project in Visual Studio. In that project, when the user enters the hostname they get a 404 error but what I would like to happen is for them to be redirected to the index.html when they have just entered the hostname.
I was wondering how this is done. Below is the code that I used but it didn't work
<location path="">
<system.webServer>
<httpRedirect enabled="true" destination="../index.html" httpResponseStatus="Permanent" />
</system.webServer>
</location>