c# - Web.Config, when specify HttpErrors for path="." and going to "/" works fine, but if I go to url "/a/b". It doesn't work anymore -
maybe wasn't best idea title had no idea how explain it. have config in web.config file.
<location path="." inheritinchildapplications="false"> <system.webserver> <httperrors errormode="custom" existingresponse="replace"> <remove statuscode="404" substatuscode="-1" /> <error statuscode="404" path="/index.html" responsemode="executeurl" /> </httperrors> </system.webserver> </location> this works when go root of page , enter invalid page /dasdasa, renders index.html error page. if try go /aaaa/bbbb, got response of index.html can see under preview/response in develop console, cannot see on actual web page
Comments
Post a Comment