How to redirect an entire address in IIS7 URL Rewrite

iis-7redirectrewrite

My company has a promotion in a magazine that was created before we implemented our new site. Since the release of the new site we use a inbound rewrite rule to redirect anything with a www. This advertisement however is http://www.openeye.net/2011rspromo/ so when a user visits it it redirects back to the homepage.

I need it to redirect to http://openeye.net/promotions/reportstar-free-cm-610/ instead and can't seem to find the right combination in URL Rewrites to get it to work.

Any help would be appreciated.

Default www redirect
enter image description here

What I'm trying to do
enter image description here

Best Answer

It is a better approach to this issue to register an additional www.openeye.net as an additional host header for the openeye.net site.

You can do this in IIS7 by right-clicking the site and selecting Edit Bindings. There should be one default binding such as

 Type        Host Name        Port        IP Address
 http        openeye.net       80         00.00.00.000*

**This should be either the IP of your server or "All Unassigned".*

Click Add, then enter a new binding with all of the same information, except that the Host name should read "www.openeye.net" instead of "openeye.net". When you are done your binding will look like:

 Type        Host Name        Port        IP Address
 http        openeye.net       80         00.00.00.000
 http        www.openeye.net   80         00.00.00.000

Please note that this will not actually redirect the request for http://www.openeye.net/2011rspromo/ to http://openeye.net/2011rspromo/, but will bind any such requests to the intended location. So, both URLs will resolve to the same resource.