How can I configure IIS to serve directories without trailing slashes and always serve relative to root path?
问题 I have a single page app hosted in IIS and I want make sure all requests are directed to /index.html (which will interpret the url and handle all routing client side). The only exception to this rule is when the request is for an actual file that is on disk such as *.js, *.css, *.png, etc. (I still need to be able to load the app after all ;-). Nearly everything works correctly with the following web.config file: <configuration> <system.webServer> <httpErrors errorMode="Custom"