Splash › Forums › PrettyFaces Users › Generic url rewrite › Re: Generic url rewrite
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.
If you find our tools useful, please consider making a donation to help us stay online and building software!