HTTPRewrite regex rule with match group substition


#1

Is it in any way possible to write a HTTPRewrite rule that substitutes matching groups? Like using $1 in the rewrite.uri field?

For example:

  • Match on: ^example\.com\/(.+)\/foo
  • Rewrite to: example\.com\/bar/$1