Re: Generic url rewrite

Splash Forums PrettyFaces Users Generic url rewrite Re: Generic url rewrite

#22878

Sure, just use something like this:

<rewrite match="^/(w+)-(d+).xhtml$" substitute="/faces/$1.xhtml?$1=$2" redirect="302" />

See this chapter of the documentation for details:

http://ocpsoft.org/docs/prettyfaces/3.3.2/en-US/html/inbound_rewriting.html#inbound_rewriting.matching

You could also have a look at OcpSoft Rewrite, which is the successor of PrettyFaces:

http://ocpsoft.org/rewrite/