Skip to content

Instantly share code, notes, and snippets.

@sang4lv
Created January 10, 2013 07:05
Show Gist options
  • Save sang4lv/4500115 to your computer and use it in GitHub Desktop.
Save sang4lv/4500115 to your computer and use it in GitHub Desktop.
Error 500 with following rewrite rules
<system.webServer>
<rewrite>
<rules>
<rule name="Rewrite PHP" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
<add input="{REQUEST_FILENAME}" negate="true" pattern="(.*).php" />
</conditions>
<action type="Rewrite" url="{R:1}.php" />
</rule>
</rules>
</rewrite>
</system.webServer>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment