Reply To: Redirect instead of Forward

Splash Forums Rewrite Users Redirect instead of Forward Reply To: Redirect instead of Forward

#25333

Yeah, actually you need to add the query parameters directly in this case:


ConfigurationRuleBuilderPerform rule = config.addRule()
.when(
   Direction.isInbound().and(
   Path.matches(“/{key}”).and(
   Query.matches("{query}")))
)
.perform(Redirect.temporary(“/foo.html?{query}”))
.where(“key”).matches(“[a-z0-9]{8}”)
.where("query").matches(".*")