How to redirect root path to subpath?
Asked
Active
Viewed 988 times
2 Answers
1
In the newer version Wildfly, we can used rewrite in undertow:
<filter-ref name="root-redirect" predicate='regex(pattern="^/$", value="%U", full-match=true)' />
<rewrite name="root-redirect" redirect="true" target="/xxx" />

tony
- 91
- 1
- 8
-1
If you only need redirect rather than rewrite, you can create ROOT.war and have have single index page with redirect

Will Tatam
- 566
- 3
- 10
-
Thanks! I will try on this way. – tony Nov 17 '19 at 08:34