title: Angular UI router loads wrong controller/template
body: <p>Maybe it's something simple, but this is the first time I'm using the <a href="https://angular-ui.github.io/ui-router/" rel="nofollow noreferrer">angular-ui-router</a>. I'm using html5 mode and I've got the following states configured:</p>
  <pre><code>    $locationProvider.html5Mode(true);
  
      $authProvider.loginUrl = API_LOCATION + 'authenticate';
  
      $urlRouterProvider.otherwise('/auth');
      
      $stateProvider
          .state('auth', {
              url: '/auth',
              templateUrl: TEMPLATES_LOCATION + 'login.html',
              controller: 'AuthController as auth'
          })
          .state('country', {
              url: '/country',
              templateUrl: TEMPLATES_LOCATION + 'country.index.html',
              controller: 'CountryListController'
          })
          .state('country.select', {
              url: '/select',
              templateUrl: TEMPLATES_LOCATION + 'country.select.html',
              controller: 'CountrySelectController'
          })
          .state('country.edit', {
              url: '/:isoCode',
              templateUrl: TEMPLATES_LOCATION + 'country.edit.html',
              controller: 'CountryEditController'
          });
  </code></pre>
  <p>All country routes load <code>country.index.html</code> and <code>CountryEditController</code>. Why?</p>
  <h1>EDIT</h1>
  <p>my .htaccess file (the angular app is in a subfolder named &quot;admin&quot;)</p>
  <pre><code>RewriteEngine on
  
  #RewriteBase /admin/ &lt;- tried this too
  
  RewriteCond %{HTTP:Authorization} ^(.*)
  RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
  
  RewriteCond %{REQUEST_FILENAME} -s [OR]
  RewriteCond %{REQUEST_FILENAME} -l [OR]
  RewriteCond %{REQUEST_FILENAME} -d
  RewriteRule ^.*$ - [NC,L]
  
  RewriteRule ^(.*) /admin/index.html [NC,L]
  </code></pre>