Created
May 27, 2011 09:59
-
-
Save danshearmur/994979 to your computer and use it in GitHub Desktop.
Weird IIS 404s
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
- 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