How would I redirect requests to a URL like
http://www.mydomain.com/foo.aspx
to another URL like
http://www.mydomain.com/bar.aspx
in IIS.
Can this be done in IIS 6.0 or 7.0?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are actually a few ways you can do it
1) Response.Redirect
2) Server.Transfer (though it will still appear as “foo.aspx”
3) Use URL Rewriting to redirect the user before it gets to ASP.NET
All can be done on both IIS6 and 7, although IIS6 would require an ISAPI URL Rewriting module, IIS7 has a module built in.