We moved our web service to a new website and we need to redirect all the calls to https://www.example.com/LicenseServer.asmx
to https://licensing.example.com/LicenseServer.asmx
but for an unknown reason, it fails with an exception.
Are these rules unsuitable for ASMX
web service files?
Should I make this change at IIS level instead?
<rule name="Licensing redirection" stopProcessing="false">
<match url="LicenseServer.asmx" ignoreCase="true" />
<action type="Redirect" url="https://licensing.example.com/LicenseServer.asmx" redirectType="Permanent" appendQueryString="true" logRewrittenUrl="true" />
</rule>
I've already checked also this answer: https://stackoverflow.com/a/45939030/261010