title: Home route in ui-router
body: <p>I use <a href="https://github.com/angular-ui/ui-router" rel="noreferrer">https://github.com/angular-ui/ui-router</a> library. When I try to access index route ('/') I'm redirected to 404. The code:</p>
  
  <pre><code>angular.module('cr').config(function($stateProvider, $urlRouterProvider) {
      $stateProvider
          .state('home', {
              url: '/',
              templateUrl: 'views/index.html'
          });
  
      $urlRouterProvider.otherwise('/404');
  });
  </code></pre>
  
  <p>What's wrong with that code? Although when I use ui-sref="home" it works but the url looks like '/#/' but when a user inputs site name he uses just domain name, like 'mysite.com', not 'mysite.com/#/'</p>