Been trying to create a rule to allow sub domains to be added to domains, in which it would link to a folder inside the www folder
I have this rule and it just returns bad request, but if its changed to redirect it works fine, just the address is incorrect.
<rule name="SubDomain" stopProcessing="false">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^(?!www)(\w+)\.mine\.co\.uk$" />
</conditions>
<action type="Rewrite" url="http://mine.co.uk/{C:1}" />
</rule>
instead of sub.mine.co.uk
it would be mine.co.uk/sub
I understand that is how redirect works, so why does the rewrite return bad request?