Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How would I redirect requests to a URL like 

to another URL like 

in IIS.

Can this be done in IIS 6.0 or 7.0?

share|improve this question
redirect or forward? – Campo Jun 8 '10 at 16:24
up vote 2 down vote accepted

If you have an existing foo.aspx file then you can set a Location header to redirect to the new file/URL:

<script runat="server">
private void Page_Load(object sender, System.EventArgs e) {
Response.Status = "301 Moved Permanently";

In IIS6, if the file exists, using the management snap-in, you can right-click to open the properties for the file and select to redirect to another location.

In IIS7, you can use the Rewrite module to capture the request and redirect it.

share|improve this answer
For IIS6 it's described here in detail – Chris Aug 12 '14 at 9:53

You can use URL Rewrite in IIS7.0.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.