I would like to redirect all traffic to a new domain. I've tried two different configurations, but non of them takes effect:
<httpRedirect enabled="true" httpResponseStatus="Permanent" destination="http://www.newdomain.com/" />
And ...
<rewrite>
<rules>
<rule name="Redirect All" stopProcessing="true">
<match url=".*" ignoreCase="true" />
<action type="Redirect" url="http://www.newdomain.com" redirectType="Permanent" appendQueryString="false" />
</rule>
</rules>
</rewrite>
I'm placing the configurations inside <system.webServer>
What might be wrong?