I'm using in my app:
app.config(function ($routeProvider, $locationProvider, $httpProvider) {
$routeProvider
.when('/', {
templateUrl: '/index.html',
controller: 'mainController'
})
.when('/login', {
templateUrl: '/views/login.html',
controller: 'LoginController'
})
.when('/user/list', {
templateUrl: '/views/users/list.html',
controller: 'userListController'
})
});
$locationProvider.html5Mode(true);
});
and in html there is <base href="/">
. I'm using this app in google app engin. In app.yaml
:
- url: /(user)/.*
static_files: index.html
upload: index.html
everything is ok with links that starts with user
. But in login there is 404 Not Found
error. Any advise about solution would be appreciated.