Reply To: FacesFileNotFoundException bad Url

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

#25023

Oh, sorry. My fault. There is no ‘notExists’ but only a ‘exists’. So please try this one:

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