I have one page which the routing goes from. So if the user go from that root page e.g. http://localhost/rootPage
and click on a button to go to http://localhost/rootPage/subPage
that's fine however if the user refresh http://localhost/rootPage/subPage
it will go the directory listing instead of the subPage.
So I wonder how can I make so the user still ends up in the subPage even though user refresh the page? Is it something in AngularJs or is it something I need to configure on the server?