title: Tell Apache to always serve index.php, no matter what is in the URL
body: <p>I have written a frontend  <a href="https://en.wikipedia.org/wiki/Single-page_application" rel="nofollow" title="Single Page Application">SPA</a> in Javascript. It uses Ember with its routing, fake URL, authentication and all the amazing stuff Ember handles almost implicitly.</p>
  
  <p>The backend is written in PHP and the page shall be served by an Apache server.</p>
  
  <p>Now, the page works just fine if the request is sent to the root file (aka index) and everything is handled from here. If I however reload the page at let's say <code>localhost/login</code>, Apache tries to find a file named login, which, naturally, doesn't exist, as everything is handled in Javascript and I get the widely-known 404 - <code>The requested URL /login was not found on this server.</code></p>
  
  <p><strong>How do I tell Apache to always serve <code>index.php</code>, no matter what is in the URL?</strong></p>