Reply To: Multiple rewrite url value from database

Splash Forums Rewrite Users Multiple rewrite url value from database Reply To: Multiple rewrite url value from database

#27019

I was thinking about something like this:


ConfigurationBuilder builder = ConfigurationBuilder.begin();
for( ... ) {
   builder.addRule(Join.path(rewrite_url_from_db_1).to(string_url_from_db_1))
      .when(new HttpCondition() {
           @Override
           public boolean evaluateHttp(HttpServletRewrite event, EvaluationContext context)
           {
              // check for maintenance mode
           }
      });
}