title: Angular 2 Routing, .htaccess
body: <p>I am having some problems with my routeing. It works fine on localhost but when I put it on the server and do a refresh of the page I get a 404 Error.</p>
  
  <p>So I made an <code>.htaccess</code> file and put it in the same place as my <code>index.html</code>:</p>
  
  <pre><code>RewriteEngine On
  # If an existing asset or directory is requested go to it as it is
  RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
  RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
  RewriteRule ^ - [L]
  
  # If the requested resource doesn't exist, use index.html
  RewriteRule ^ /index.html
  </code></pre>
  
  <p>But it is still not working what am I doing wrong?
  Do I have to add something to my Angular routeing?
  Can someone help?</p>