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 am trying to rewrite the URL through "Using URL Rewrite Module" on IIS7 (windows 7).

URL: http://localhost/AIM/group-discussion/videos.aspx?id=4&title=some-title

Rewrite URL: http://localhost/AIM/group-discussion/videos/4/some-title

Rewrite rule:

                <rule name="RewriteUserFriendlyURL1" stopProcessing="true">
                    <match url="^AIM/group-discussion/videos/([^/]+)/([^/]+)/?$" />
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                    <action type="Rewrite" url="AIM/group-discussion/videos.aspx?id={R:1}&amp;title={R:2}" />

I am getting 404 error while accessing rewrite URL (http://localhost/AIM/group-discussion/videos/4/some-title)

following error log through "Failed request tracing" in IIS7


ModuleName="IIS Web Core", Notification="MAP_REQUEST_HANDLER", HttpStatus="404", HttpReason="Not Found", HttpSubStatus="0", ErrorCode="The system cannot find the file specified.
 (0x80070002)", ConfigExceptionInfo=""

I am running site in "Integrated Pipe mode"

share|improve this question
If you access the destination URL directly, what happens? – Broam Dec 14 '10 at 17:52

Try using process monitor from That will let you know what it's attempting to do on disk. Possibly you just need a / at the beginning of your rewrite path.

If it doesn't show attempting to do anything on disk then try Failed Request Tracing. That will provide even further details.

share|improve this answer

Your Answer


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