title: AWS ELB rewrite path and alter the path in between
body: <p>I'm using an ELB (Elastic Load Balancer) on Amazon Webservices (spezifically an Application Load Balancer).</p>
  <p>The Problem:
  I want to create a rule to rewrite the path, but need to insert a string within the path.</p>
  <p>When a request is coming in to:</p>
  <p><code>example.org/api/foo/*</code></p>
  <p>I need it to be redirected to:</p>
  <p><code>example.org/api/v1/foo/*</code></p>
  <p>The rest of the request needs to stay the same.
  The problem is that the original value of path cannot be altered. One way of cause would be to add every possible path as a rule. But when expanding the api it would be extremly uncomfortable.</p>