I have my NodeJS application running on port 11000 and AngularJS running on port 9000.
I am using HTML5 mode true in AngularJS and my URL's with #! and redirected to / using this mode. However, when I hit refresh, it gives 404.
I do have in my index.html.
As per the link: Angular ui-router pressing refresh causes 404 error. Before pressing the reload/refresh, the url works fine without the hashbang. When I manually add /#!/, it gets redirected to the right path.
The problem needs to be handled server side using app.use(*, callback)
but since the server is running on port 11000, the request never really reaches there. Am I missing out on something fundamental here? I tried putting in the star wildcard for all routes in node js but that didn't help.