Reply To: FacesFileNotFoundException bad Url

Splash Forums Rewrite Users FacesFileNotFoundException bad Url Reply To: FacesFileNotFoundException bad Url

#25017

Thanks for the clarification. Yeah, you can do something like this with Rewrite. Something like this:

.addRule()
.when(Direction.isInbound()
    .and(Path.matches("/{something}.xhtml"))
    .and(Resource.notExists("/{something}.xhtml")))
.perform(SendStatus.code(404))
.where("something").matches(".*")

I didn’t test it but it shows how I would do it. πŸ™‚