IIS 6 nested virtual directory redirection

Posted by threedaysatsea on Pro Webmasters See other posts from Pro Webmasters or by threedaysatsea
Published on 2012-06-19T14:13:58Z Indexed on 2012/06/19 15:26 UTC
Read the original article Hit count: 246

We're running IIS 6 on a WinServer2k3 box and we're having some trouble with the following problem:

E-mails were sent out to users asking them to go to the following URL:

alias.contoso.com/directory2/view.aspx?queryparam1=no&queryparam2=blue

However, the URLS are actually supposed to be:

server.contoso.com/directory2/view.aspx?queryparam1=no&queryparam2=blue

It's too late to recall all of the e-mails, and we'd like to redirect traffic to make this as seamless as possible for our users. The real problem here is that the server (server.contoso.com) is hosting the alias (alias.contoso.com) as a redirect thusly, and the existing redirect we need to keep functional:

Default Web Site (server.contoso.com)
--Directory1
--Directory2
--Directory3
Redirection to Directory3 (alias.contoso.com)
--Essentially alias.contoso.com will take the user to server.contoso.com/Directory3

Is there any way to host a separate redirect inside of the existing redirect?

We need to keep alias.contoso.com taking the user to server.contoso.com/Directory3 but also make alias.contoso.com/directory2/view.aspx?queryparam1=no&queryparam2=blue point to server.contoso.com/directory2/view.aspx?queryparam1=no&queryparam2=blue

Any tips? Is this even possible?

© Pro Webmasters or respective owner

Related posts about redirects

Related posts about iis