Reply To: how do I forward to other apps, etc?

Splash Forums Rewrite Users how do I forward to other apps, etc? Reply To: how do I forward to other apps, etc?

#25950

heyoka
Participant

So I think my problem was using forward rather than redirect. Hard to say since I can’t find doc for either. But this code works:

     return ConfigurationBuilder.begin()
            .addRule()
                .when(Direction.isInbound().and(Path.matches("/{path}")))
                .perform(
                     Redirect.temporary("/myapp/task/{path}")
                 )
                .where("path").matches("firstkey")
            .addRule()
                .when(Direction.isInbound().and(Path.matches("/{path}")))
                .perform(
                     Redirect.temporary("/myapp/task/{path}")
                 )
                .where("path").matches("secondkey");

Now I am trying to understand how to combine these two rules with a compound where clause, ie where(“path”).matches(“firstkey” or “secondkey”), or better yet where(“path”).in(“firstkey”,”secondkey”,”thirdkey”…)

Any clues?