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)

#21976

youneskhan
Participant

Christian,

Yes, /khan/ works fine but /khan doesn’t and I get a 404 for /view/viewUser.seam.

Both /khan/ and /khan are meant to be for /view/viewUser.seam.

This is what I have in my config file.

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

<url-mapping id=”userPage”>

<pattern>/#{username}/</pattern>

<view-id>/view/viewUser.seam</view-id>

</url-mapping>