Re: http://domain.com/{username} Short URLs or catchall (Facebook-style)

Splash Forums PrettyFaces Users http://domain.com/{username} Short URLs or catchall (Facebook-style) Re: http://domain.com/{username} Short URLs or catchall (Facebook-style)

#21967

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" />

Christian