Re: Generic url rewrite

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

#22888

You can’t use regular expressions directly. You must use parameters, then specify the regex to which each parameter matches.

As christian showed earlier, use something like this:

addRule( Join.path("/{page}.xhtml").to("/faces/{page}.xhtml") ).where("page").matches(".*")