title: AngularUI Router - Unable to access States via URL
body: <p>So having an issue with AngularUI Router. The problem I'm having is it's unable to access any states via entering the URL or refreshing while on a state other than home. The returned error is <code>Cannot GET /state-name</code> however the <code>ui-sref="state-name"</code> works perfectly fine. </p>
  
  <p>Not using a Node server or Express routing, just Angular and running web server using Gulp-Connect.</p>
  
  <p><strong>Technology:</strong></p>
  
  <ul>
  <li>AngularJS 1.5.3</li>
  <li>Angular UI 0.2.18</li>
  <li>Gulp 3.9.1</li>
  </ul>
  
  <p><strong>Routes.js</strong></p>
  
  <pre><code>angular.module('myApp').config(function(
    $httpProvider,
    $stateProvider,
    $locationProvider,
    $urlRouterProvider
  ){
    $locationProvider.html5Mode({enabled: true, requireBase: false});
  
    $stateProvider
      .state('home',{
        url:'/',
        templateUrl: 'path/to/home.tmpl.html'
    })
    .state('state-name',{
      url:'/state-name',
      templateUrl: 'path/to/state-name.tmpl.html'
    });
    $urlRouterProvider.otherwise('/');
  });
  </code></pre>
  
  <p>Is there something I'm missing to allow for refreshing on a state or navigating via URL?</p>