Re: how to hide all the suffix of the url

Splash Forums PrettyFaces Users how to hide all the suffix of the url Re: how to hide all the suffix of the url

#21867

Yes, this rewrite rule your wrote will match EVERY request to the application including images and CSS files. You could try to modify the pattern to ignore images and CSS files but “don’t include” is very difficult to achieve in regular expressions. I think some users did something like this in the past. You could try to search the forums for this.

What about something like this:

<rewrite match=”/([^.]+)” substitute=”/$1.jsf” redirect=”chain” />

This would work for all request that don’t contain a period character.