Deploy Angular 2 to Apache Server
I want to deploy an Angular 2 application on an Apache server. I've read various guides like this and this but none of them is working. I have npm and ng installed on server. In nutshell, here's what i did: Cloned complete project repository on my server. Installed dependencies using npm install . Used ng build --prod command and it created a dist directory. Changed apache root to /var/www/html/dist directory. Enabled mod_rewrite , restarted apache and added this .htaccess in my dist directory. <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.html$ - [L] RewriteCond