Deploy Angular 2 to Apache Server
snippet in htaccess

Deploy Angular 2 to Apache Server

user7973

<Directory "/var/www/html/dist">
  AllowOverride All
</Directory>

Deploy Angular 2 to Apache Server

user1708

 <IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.html$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.html [L]
</IfModule>