Possible duplicate of https://stackguides.com/questions/26840890/i-need-to-change-domain-with-iis-7-5-url-rewrite (unanswered yet)
I have the following URLs
www.myolddomain.com/somefolder-a
www.myolddomain.com/somefolder-b
www.myolddomain.com/somefolder-c
...
I want one rule to redirect every request incoming containing myolddomain.com/somefolder
to www.mynewdomain.com/somefolder
with above suffix such as -a
.
My rule so far looks like this:
<rule name="Redirect from old domain" enabled="true" stopProcessing="true">
<match url="(.*)myolddomain.com/somefolder(.*)" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
</conditions>
<action type="Redirect" url="https://www.mynewdomain.com/somefolder{R:2}" />
</rule>
This rule has no effect whatsoever.
Did I make a mistake here already? Or could requests be redirected at some other place before IIS?
According to the firewall admin no redirects take place at the firewall. Could it be anything else?