When loading a page using Angular an Apache myserver.com
everything works fine, when going to a subroute from the main page myserver.com/credits
by clicking a link it'll work as well.
However, if I try to go directly to myserver.com/credits
from the browser navigation bar it'll return a 404 error
message:
I'm aware that by working with node I can configure this so that it does work, however, my company website runs in an apache server which I have no access to.
I could make it so the server redirects to the main page myserver.com
like so:
.htaccess
ErrorDocument 404 /index.html
However the optimal resolution would be that going to myserver.com/credits
works outright.
Is there a way to make Apache behave this way? And if so, how?