I need to redirect a "fake" subdomain to a real subdomain in IIS 7.5. The reason is that the marketing department does not want to use the actual website address in the printed materials.
Actual site URL:
reporting.usapartners.com
The marketing department wants report.usapartners.com (fake) to redirect to report.usapartners.com (real)
Again, report.usapartners.com does not exist, only report.usapartners.com exists
Here is what I tried
I added a binding in IIS for report.usapartners.com. I added report.usapartners.com as the host name and used the IP address of report.usapartners.com
Then I went to report.usapartners.com web.config and added:
<rewrite> <rules> <rule name="report" stopProcessing="true"> <conditions logicalGrouping="MatchAll"> <add input="{HTTP_HOST}" pattern="report.usapartners.com" negate="false" /> </conditions> <action type="Redirect" url="http://reporting.usapartners.com" appendQueryString="false" redirectType="Permanent" /> </rule> </rules> </rewrite>
It looks like my solution creates an alias that cannot be redirected to.
Am I even right about this problem? It seems like this should be a simple problem to solve, but maybe not? Any ideas are welcome and appreciated.
thanks
source share