It looks like your substitute is also matched by the pattern of the rule. If the pattern matches the first time the request will be rewritten and forwarded. But then the forwarded request matches another time, so it is forwarded again. And so on and so on.
You should either change your pattern or substitute to get our of this endless loop.
Do you play Magic?
Get TopDecked MTG, the #1 Magic App, built by players, for players. Free to use, forever.