I'm using IIS 8.5 with the URL Redirect module installed.
My use case is that we have a defunct web site (www.xyz.com) and would like all requests to this site be redirected to another site (www.123.com). In the web.config of www.xyz.com I've added the following code:
<system.webServer> <rewrite> <globalRules> <rule name="Redirect to 123.com" stopProcessing="true" enabled="true"> <match url="(.*)" ignoreCase="true" /> <action type="Redirect" url="http://www.123.com/" redirectType="Permanent" /> </rule> </globalRules> </rewrite> </system.webServer>
I don't get any errors but I don't get a redirect either. It just goes to www.xyz.com as always. What am I missing to get this redirect to work?