title: AngularJS navigating to a route gives 404 in Apache
body: <p>When loading a page using Angular an Apache <code>myserver.com</code> everything works fine, when going to a subroute from the main page <code>myserver.com/credits</code> by clicking a link it'll work as well. </p>
  
  <p>However, if I try to go directly to <code>myserver.com/credits</code> from the browser navigation bar it'll return a <code>404 error</code> message:</p>
  
  <p><img src="https://puu.sh/eBEXr/d4d5effc73.png" alt="Error Message"></p>
  
  <p>I'm aware that by working with node I can configure this so that it does work, however, my company website runs in an apache server which I have no access to. </p>
  
  <p>I could make it so the server redirects to the main page <code>myserver.com</code> like so:</p>
  
  <p><b>.htaccess</b></p>
  
  <pre><code>ErrorDocument 404 /index.html 
  </code></pre>
  
  <p>However the optimal resolution would be that going to <code>myserver.com/credits</code> works outright.</p>
  
  <p>Is there a way to make Apache behave this way? And if so, how?</p>