How can I redirect with url rewrite eg from https://www.contoso.com to another server eg to https://www.testpage.com
You can use iis url rewrite for redirection, and use this rule:
<rule name="test">
<match url="^(.*)$" />
<conditions>
<add input="{HTTP_HOST}" pattern="^www.contoso.com$" />
</conditions>
<action type="Redirect" url="https://www.testpage.com/{R:1}" />
</rule>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.