Using Url Rewrite, I'm trying to redirect /foo_bar/* to /foo/*. I've tried this:
<rule name="Redirect foo_bar to foo" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{HTTP_URL}" pattern="^/foo_bar/(.*)" />
</conditions>
<action type="Redirect" url="/foo/{R:1}" />
</rule>
But this just redirects to /foo/foo_bar/*. Where am I going wrong?