Re: How to create path-parameter from url?

Splash Forums PrettyFaces Users How to create path-parameter from url? Re: How to create path-parameter from url?

#20585

Hi –

You probably want to take a look at custom URL rewrite rules:

http://ocpsoft.com/docs/prettyfaces/snapshot/en-US/html_single/#inbound_rewriting

Something like this (disclaimer: not verified to be exactly what you need):

<rewrite match="^/pages/(oldStore.*)" substitute="/pages/index.xhtml?path=$1" redirect="chain"/>

Notice that I used “chain” as the redirect type, this will do an internal redirect (servlet forward), and will not change the browser address… if you DO wish to issue a browser redirect, use “301” instead.

Hope this helps,

Lincoln