i need some assistance with our IIS 10 Webfarm. We have sites that have numerous bindings, an example been:
training.external.abc123.com
training.abc123.com
http://ift.tt/2xHuWNw
I need to create a redirect rule that does 2 things:
I need all the bindings to redirect to training.abc123.com. I think I have solved this with:
<rewrite>
<rules>
<rule name="Redirect to training.abc123.com" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAny">
<add input="{HTTP_HOST}" pattern="^training.external.abc123.com$" />
<add input="{HTTP_HOST}" pattern="^http://ift.tt/2fTB4sZ" />
</conditions>
<action type="Redirect" url="http://ift.tt/2xHYqen}" />
</rule>
</rules>
</rewrite>
The above seems to work fine.
The 2nd part of this, I need all current paths to be redirected to the primary URL (the above) but keeping their paths:
http://ift.tt/2fSDGan <--- redirected to
http://ift.tt/2xHYrir
Aucun commentaire:
Enregistrer un commentaire