I am trying to redirect the request which comes to Https://www.example.ie to Https://www.example.com/ab-ng. Below is the rule which I have in my web.config but not working as expected.
<rule name="Redirect to ab-ng" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTP_HOST}" pattern="^Https://www.example.ie$" />
</conditions>
<action type="Redirect" url="https://www.example.com/ab-ng/{R:0}" redirectType="Permanent" />
I am new to redirect rules, please help.
