IIS 6 nested virtual directory redirection
- by threedaysatsea
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?