Re: Generic url rewrite

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

#22885

I think you will have to do it the other way around:

<rewrite match="/(w+)" substitute="/faces/$1" />

This will transform requests like /test.xhtml to /faces/test.xhtml.

But I also think this pattern is a bit to general because /(w+) will also match things like /images.png. Therefore you should use something like:

<rewrite match="/(w+).xhtml" substitute="/faces/$1.xhtml" />

I hope this helps. :)