Re:{username} Short URLs or catchall (Facebook-style)

Splash Forums PrettyFaces Users{username} Short URLs or catchall (Facebook-style) Re:{username} Short URLs or catchall (Facebook-style)


I think the rewrite rule like you configured it should result in a permanent redirect (301) if it matches, correct? You could check with the developer tools of your browser if it works and if a redirect occurs.

You could also try to remove the brackets from the pattern as they are not required in this case. Actually they are creating capturing groups in the regular expression which MAY be confusing for PrettyFaces. So try:

<rewrite match="^/[a-zA-Z0-9-]+/?$" trailingSlash="append" toCase="lowercase" />