I want to deploy my Angular 5 app on a Tomcat 7 server, but there is a problem on redirection when i click on refresh button, i got always 404 error. On the angular site web, i found for Apache:
RewriteEngine On
# If an existing asset or directory is requested go to it as it is
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
RewriteRule ^ - [L]
# If the requested resource doesn't exist, use index.html
RewriteRule ^ /index.html
It works for Apache server but not for Tomcat, is there a similar config for Tomcat? Thank you