I'm using ui.router with angularJs and i came across with strange behavior.
If i click trough page everything works as expected, links are changing, templates are loading, but if i visit some specific page directly (other then www.myapp.com) i always get 404 page not found
This is my app.js
var app = angular.module('app', ['ui.router', 'ui.bootstrap']);
That's because Apache tries to serve the file
location in your www root directory. It's not possible because you have got SPA app without subpages. You have to force Apache web server to rewrite all locations and serve
index.html page (main page). I found helpful gist for that: