Reply To: stay at page rule

Splash Forums Rewrite Users stay at page rule Reply To: stay at page rule

#26650

Something like this could work:


.addRule()
.when(Direction.isInbound().and(Not.any(Path.matches("/somepage")))
    .and(new HttpCondition() {
  public boolean evaluateHttp(HttpServletRewrite event, EvaluationContext context) {
    // your custom check here
  }
}))
.perform(Redirect.temporary("/somepage"));