My site’s base url is like this (not the real url): example.com
When you navigate to the base url, it automatically goes to example.com/cats/home
But when you copy that link and go directly toexample.com/cats/home, the app returns a 404.
I’m running the app on an windows server, and this issue cannot be replicated in my localhost environment.
How can I solve this so that my app is able to be bookmarked by users and so that I can refresh without issue? Thank you.
Thank you for the response, however my project does not output with a web.config at the moment and I am unsure of how to fix this issue. Manually adding one to the output www folder had no effect.
My project required us to always redirect to the home page on any change to the base URL to prevent manual navigation through the app. So the solution was simple:
Set IIS error page 404 rule to always do a 302 redirect to the home.