ISS domain redirect from old domain to new with subdomain

Default web.config file




Add this between <rules> and</rules>

<rule name=”domain_redirect” stopProcessing=”true”>
<match url=”(.*)” />
<add input=”{HTTP_HOST}” pattern=”^www\.olddomain\.de$” />
<action type=”Redirect” url=”{R:1}” redirectType=”Permanent” />


Replace olddomain and newdomain with your value and maybe change the www value to your subdomain.

Leave a Reply

Your email address will not be published. Required fields are marked *