Skip to content

Instantly share code, notes, and snippets.

@bq1990
Forked from jsheely/IIS-ReWrite-Remove-ASPX.xml
Last active August 29, 2015 14:15
Show Gist options
  • Save bq1990/d726845da8838aec2a55 to your computer and use it in GitHub Desktop.
Save bq1990/d726845da8838aec2a55 to your computer and use it in GitHub Desktop.
<rule name="san aspx">
<!--Removes the .aspx extension for all pages.-->
<match url="(.*)" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="{R:1}.aspx" />
</rule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment