Re: General question about a mega-rewrite application code sample.

Splash Forums Rewrite Users General question about a mega-rewrite application code sample. Re: General question about a mega-rewrite application code sample.

#22515

Hey there, here goes:

.addRule(Join.path(“/{one}”).to(“/{one}.xhtml”)

Inbound URL /{one} maps to internal resource `/{one}.xhtml, where ‘one’ matches any non ‘/’ character… except when the path contains “javax.faces.resource” (except this is an old configuration, since regular expressions must be defined using {params} now.

And only perform this rule when the inbound request type is Request (not forward, error, include, or async,) or the URL is being generated as an outbound link or redirect.