Angular route with html5Mode giving 'Not found' page after reload
I made some Angular routes as shown in the code bellow. app.config(function($routeProvider, $locationProvider, $provide) { $routeProvider .when('/', { templateUrl: 'home.html', controller: 'AppCtrl' }); .when('/portfolio', { templateUrl: 'portfolio.html', controller: 'AppCtrl' }) $provide.decorator('$sniffer', function($delegate) { $delegate.history = historyCompatCheck(); return $delegate; }); $locationProvider.html5Mode(true); }); This works fine, after i set the base href to be "/" it accepted an anchor with the href of "/portfolio", but when i go to " http://url.com/portfiolo " or try to