How can I redirect non www URL to www URL in jboss
using undertow
.
Tried with the command below and it's going for too many redirects.
/subsystem=undertow/configuration=filter/rewrite=nonwww-to-www:add(redirect="true",target="https://www.localhost:8443%U")
/subsystem=undertow/server=default-server/host=default-host/filter-ref=nonwww-to-www:add(predicate="regex(pattern=^https://localhost:8443,value=https://localhost:8443,full-match=false)")