How to write rewrite rules for child routes in angular 8 application?

Viewed 9

[enter image description here][1]Uncaught SyntaxError: Unexpected token '<' (at runtime.7b63b9fd40098a2e8207.js:1:1) polyfills.94daefd414b8355106ab.js:1 Uncaught SyntaxError: Unexpected token '<' (at polyfills.94daefd414b8355106ab.js:1:1) main.3197fc39de49bd161938.js:1 Uncaught SyntaxError: Unexpected token '<' (at main.3197fc39de49bd161938.js:1:1)

How to write rewrite rules for child routes of angular 8 application?

I added this configuration in tomcat server, it will work for parent routes of the application, but not work for child routes and query parameters.

RewriteRule ^/dailydata/(.*) /dailydata/index.html

RewriteCond %{REQUEST_PATH} !-f
RewriteRule ^/MyPractice/(.*) /MyPractice/index.html [NC]```

and in server.xml:

   <Valve className="org.apache.catalina.valves.rewrite.RewriteValve" />
        


  [1]: https://i.stack.imgur.com/DBPFI.png
0 Answers
Related