title: Angular JS deep linking $routeProvider reload not working
body: <p>I have the following config for routes:</p>
  
  <pre><code>app.config( function ($routeProvider, $locationProvider, $httpProvider) {
  
  // Routes
  $routeProvider.when('/admin', {
      templateUrl : '/app/partials/dashboard.html',
      controller  : 'DashboardCtrl'
  });
  $routeProvider.when('/admin/settings', {
      templateUrl : '/app/partials/settings.html',
      controller  : 'SettingsCtrl'
  });
  $routeProvider.when('/404', {
      templateUrl : '/app/partials/404.html',
  });
  $routeProvider.otherwise({redirectTo: '/404'});
  
  $locationProvider.html5Mode(true);
  });
  </code></pre>
  
  <p>Everything is working except, when I'm on <code>/admin/settings</code> and reload the page, it redirects to <code>404</code>. I tried removing the html5Mode, it works. However, I really want to use html5Mode. What am I missing? Please help me.</p>
  
  <p>Oh, btw, I'm using AngularJS 1.1.5.</p>