title: 404 ERROR when an angular application deployed on tomcat server is reloaded
body: <p>I deployed an angular application on tomcat server, application is in webapp/test/dist folder. when i run tomcat <a href="http://localhost:8080/test/dist/" rel="nofollow noreferrer">http://localhost:8080/test/dist/</a> the page will open at this point if i click on a link it will open an other page. at this point if refresh the page or copy and paste the url in new tab leads to 404 error. I need to configure the tomcat server so that it should return index.html which is in webapp/test/dist/ folder when requested file not found instead of returning 404. i added  in server.xml and I created rewrite.config file in conf/catalina/localhost/rewrite.config but i dont know what i have to write please help me.</p>