I have a Sharepoint 2013 App (Sharepoint hosted). It is a Single Page Application made with AngularJs (ngRouting) and is RESTful.
So url looks like following:
When I use the navigation e.g. the viewOrdersAll.html loads into ng-view. That's okey and works.
But when I hit F5 and the page reloads, I get an 404 Error.
Because the Browser looks for a folder/file appname/viewOrders, but of course there isn't such a folder/file.
Now the question:
Are there any possibilities to redirect to the starting page (default.html) with web.config/app.config or similar? On a apache server I can do that with the .htaccess file.
Notice: It's an App.
Or does someone have a better solution for this?