title: Having trouble with Angular.js routes
body: <p>below is what my app.js and controllers.js files look like:</p>
  
  <pre><code>angular.module('RayAuth', ['RayAuth.filters', 'RayAuth.services', 'RayAuth.directives']).
    config(['$routeProvider', '$locationProvider', function($routeProvider, $locationProvider) {
      $routeProvider.
        when('/', {
          templateUrl: 'partials/index.html',
          controller: IndexCtrl
        }).
        when('/users', {
          templateUrl: 'partials/users.html',
          controller: UserCtrl
        }).
        when('/controlpanel', {
          templateUrl: 'partials/controlpanel.html',
          controller: ControlCtrl
        }).
        when('/modules/', {
          templateUrl: 'partials/modules.html',
          controller: ModuleCtrl
        }).
        when('/resources/', {
          templateUrl: 'partials/resources.html',
          controller: ResourceCtrl
        }).
        when('/privileges/', {
          templateUrl: 'partials/privileges.html',
          controller: PrivilegeCtrl
        }).
        when('/roles/', {
          templateUrl: 'partials/roles.html',
          controller: RoleCtrl
        }).
        when('/userroles/', {
          templateUrl: 'partials/userroles.html',
          controller: UserRoleCtrl
        }).
        otherwise({
          redirectTo: '/'
        });
      $locationProvider.html5Mode(true);
    }]);
  </code></pre>
  
  <p>and this is my controllers.js:</p>
  
  <pre><code>'use strict';
  
  function IndexCtrl() {
      IndexCtrl.$inject = [];
  }
  
  function UserCtrl() {
      UserCtrl.$inject = [];
  }
  
  function ControlCtrl() {
      ControlCtrl.$inject = [];
  }
  
  function ModuleCtrl() {
      ModuleCtrl.$inject = [];
  }
  
  function ResourceCtrl() {
      ResourceCtrl.$inject = [];
  }
  
  function PrivilegeCtrl() {
      PrivilegeCtrl.$inject = [];
  }
  
  function RoleCtrl() {
      RoleCtrl.$inject = [];
  }
  
  function UserRoleCtrl() {
      UserRoleCtrl.$inject = [];
  }
  </code></pre>
  
  <p>i have added the <code>ng-app</code> and <code>ng-view</code> to my index file but when i load it in the browser it keeps redirecting to <code>http://localhost/</code> instead of <code>http://localhost/ray-auth/</code> what am i doing wrong here? can anybody help?</p>