OK figured it out (using PierreDuc!)
You need to do 2 things:
- add the .htaccess file: (as well as the file name!) in the folder where your index.html file is stored, paste this code:
ErrorDocument 404 /index.html
- Edit httpd.conf:
(you will find the file in the Apache24 / conf / directory), find the line:
<Directory "c:/Apache24/htdocs"> [...] β in my version apache is on line 244
a few lines (after a few comments) you should find this line:
AllowOverride none in my apache version is on line 264
change this line to
AllowOverride ALL
So, now your Angular-CLI site should work in assembly with routing objects
Hope this can be useful to other developers!
Thanks PierreDuc!
Manuel
source share