Angular 2 routing and direct access to a specific route : how to configure Apache?
问题 I developped a small Angular2 test app which, among other features, leverages routing. It works fine as long as the user first accesses the home page, then navigates to sub pages. If the user tries to directly access a subpage, I got a 404 if I do not configure the web server. This is perfectly normal as there is no "real page" corresponding to the route. I tried to add the following configuration in apache 2.2 to handle HTML5 Push State: <Directory /var/www/html/angular2-sens> Options