Home:ALL Converter>angular2 route deep linking in apache

angular2 route deep linking in apache

Ask Time:2016-06-10T12:58:33         Author:raju

Json Formatter

I made a small angular2 route app. It is working fine while 'npm start'.

But as soon as I deploy it to apache, whenever I try to change route manually by typing in browser address bar, it shows error.

I tried solution given at Angular2 routing / deep linking not working with Apache 404 , but it is still not working while changing route manually.

I made a small screencast of my problem. If anyone can help me. https://youtu.be/a7oDW3KsYCU

Thanks

[EDIT] My .htaccess is

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

How can I modify it.

Author:raju,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/37740200/angular2-route-deep-linking-in-apache
yy