Reply To: Dynamic pattern dependant on path and view-param?

Splash Forums Rewrite Users Dynamic pattern dependant on path and view-param? Reply To: Dynamic pattern dependant on path and view-param?

#24644
addRule(Join.path("/entity/{x}").to("/sites/entity/{x}.xhtml"))
.when(Not.any(ServletMapping.includes("/entity/{x}")))
.where("x").matches(".*")

If I understand correctly, you want one rule to handle all files. The only thing I can recommend is to create a wildcard pattern similar to (but perhaps more custom to your needs than) the above.