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)

#21982

youneskhan
Participant

yes, I tried with the above rewrite url. Below is my complete xml.

<rewrite match=”^/[a-zA-Z0-9-]+/?$” trailingSlash=”append”

toCase=”lowercase” redirect=”301″ />

<url-mapping id=”home”>

<pattern>/</pattern>

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

</url-mapping>

<url-mapping>

<pattern>/#{userName}/</pattern>

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

</url-mapping>

<url-mapping>

<pattern>/thankYou/#{message}</pattern>

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

</url-mapping>

<url-mapping>

<pattern>/error/systemsDown</pattern>

<view-id>error-pages/generalSystemsDown.seam</view-id>

</url-mapping>