I'm serving a static HTML file in the wwwroot folder of the .NET 6 Web API
How can I remove or hide the .html extension? I tried implementing mod_rewrite
rules in web.config file here but it did not work. I renamed the web.config
file to app.config
as recommended here but still did not work.
So basically, what I want to achieve is Uri rewrite from https://localhost:5000/documentation.html to https://localhost:5000/documentation
How is this done in Web API that is serving a static file?