In my Angular 4 application, if I enter the root path in the URL the first time I visit the site (i.e. localhost:4200/projects), my application loads and the corresponding component is displayed on the screen in the browser.
However, as soon as I serve the site through IIS, if I go to http://<my-domain>.com/projects, I get a 404 error (not from my application) and the application never loads.
How do I access the root path as the first visit to the production site to find out that the application is an Angular application and downloads the application for any path that is root or higher?
source
share