Re: rewriting according to url extension

Splash Forums PrettyFaces Users rewriting according to url extension Re: rewriting according to url extension

#22767

You could restrict the regular expression used for matching the second path parameter so that strings containing a dot don’t match. Something like this:

<pattern value="/#{category}/#{ /[^/.]+/ productName}" />

Have a look at:

http://ocpsoft.org/docs/prettyfaces/3.3.2/en-US/html/Configuration.html#config.pathparams.regex

That should work. :)

PS: You should really update PrettyFaces to version 3.3.3. This version is much more stable than 3.2.2.