Is there a way to programmatically know when someone is using the Default Document feature of IIS to access my page (that is, the name of my .ASPX isn’t in their URL anywhere)?
Is there a way to programmatically know when someone is using the Default Document
Share
The only way I can think of is check the URL (to see if it’s requesting http://localhost/virtual/ instead of http://localhost/virtual/default.aspx) and consider that the default document…
Not a feature for MVC or if you have url rewriting… and I don’t know if an IIS feature for this either, unless for some reason it was added as a module and available via IIS 7…