Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

I have a virtual directory in IIS 7 called Foo. There is a URL that you can access at

I would like to automatically go to but can't seem to find a way to do this in IIS 7 with redirects (it keeps redirecting to if I redirect to Foo/test.aspx or the full address

How is this done?

share|improve this question

One option is to have a default document with the following content in the site root:

<%@ page language="c#" %>

<script runat="server">
    protected void Page_Load(object sender, EventArgs e)
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.