title: AngularJS html5mode URL not working
body: <p>I have a simple AngularJS application with no code related to nodeJS in it. I'm facing problem in removing # from url. I've used ui-routes for routing.</p>
  
  <pre><code>'use strict';
  var app = angular.module('myapp', ['ui-router']).
          config(['$stateProvider', '$locationProvider', function ($routeProvider, $locationProvider) {
                 $locationProvider.html5Mode(true);
                  $stateProvider.
                          state('home', {
                              url: '/',
                              templateUrl: 'views/index.html'
                          })
                          .state('where-am-i', {
                              url: '/where-am-i',
                              templateUrl: 'views/where_am_i.html',
                              controller: 'mainCtrl'
                          })
                          .state('audience', {
                              url: '/audience',
                              templateUrl: 'views/audience.html',
                              controller: 'mainCtrl'
                          });
  
              }]);
  </code></pre>
  
  <p>Also added base tag to the head section of my index.html.</p>
  
  <pre><code>&lt;base href='/' /&gt;
  </code></pre>
  
  <p>Also tried require no base but still not able to get it working.</p>
  
  <pre><code>$locationProvider.html5Mode({
              enabled: true,
              requireBase: false
          });
  </code></pre>
  
  <p>Adding base tag shows 404 for all the assets I've included in index.html file.</p>
  
  <p>Need a quick and simple solution for this.</p>
  
  <p>Thank you in advance!</p>