Closed alvipeo closed 5 years ago
@alvipeo does swapping the order of UseStaticFiles and UseRewriter calls help this? The idea is you want the [anything] section to be rewritten before it's declared a static file.
Let me know if that helps with your problem!
@muratg I'm going to try this tomorrow! I kinda left the idea but came back to it today with another project. Need to have it fixed.
Hi. We're closing this issue as no response or updates have been provided in a timely manner and we have been unable to reproduce it. If you have more details and are encountering this issue please add a new reply and re-open the issue.
For Angular 4 app in my ASP.NET Core MVC app I need to set up Core MVC Rewrite so:
localhost/app
is requested, it responds with the defaultlocalhost/app/index.html
(where ng app resides)localhost/app/[anything]
, then it should still respond withindex.html
(samelocalhost/app/index.html
), but[anything]
should be handled by Angular.Is this possible at all? Sorry, this place is the only hope...
Here's what I have now:
I tried different settings, no luck. I get 404 on anything starting with
localhost/app
.