Need URL rewriter example

I want to redirect url from https://www.xyxyx.com/press(* all urls with prefix as “/press”) to https://www.xyxyx.com/press-releases
Tried all possible combinations (like press$,press*,press**,press(**)) nothing seems to work. Anybody has suggestions.

** Should work (if using wildcard matching of course). Try setting the
‘org.tuckey.web.filters.urlrewrite’ classes (forgot which exactly) to
DEBUG. It should log what’s being evaluated and against what.

Kind regards,
Bartosz

hi @boudekerk, thanks for the quick response. But ** not working if there is (-) after press like ^url/press-

Seemed to work fine when I test this, so must be something else. Logs
will probably tell you.