Skip to content

Instantly share code, notes, and snippets.

@stoan
Last active September 14, 2021 16:36
Show Gist options
  • Save stoan/975e86b1ebe907cbc773b08351566f98 to your computer and use it in GitHub Desktop.
Save stoan/975e86b1ebe907cbc773b08351566f98 to your computer and use it in GitHub Desktop.
Undertow(Wildfly/Jboss) url rewrite configuration file for AngularJS
regex['(.*/orders/?.*?$)'] and not regex['(.*/app.*)'] -> rewrite['/index.html']
regex['(.*/products/?.*?$)'] and not regex['(.*/app.*)'] -> rewrite['/index.html']
regex['(.*/invoices/?.*?$)'] and not regex['(.*/app.*)'] -> rewrite['/index.html']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment