Skip to content

Instantly share code, notes, and snippets.

@danshearmur
Created May 27, 2011 09:59
Show Gist options
  • Save danshearmur/994979 to your computer and use it in GitHub Desktop.
Save danshearmur/994979 to your computer and use it in GitHub Desktop.
Weird IIS 404s
<!--
- Everything in "/Files/" was 404'ing. copied files to "/legacy/" and made this
-->
<rule name="files_folder" stopProcessing="true">
<match url="^Files/(.*)$" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="legacy/{R:1}" />
</rule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment