Skip to content

Instantly share code, notes, and snippets.

@akshygupt
Forked from jsheely/IIS-ReWrite-Remove-ASPX.xml
Last active August 29, 2015 14:16
Show Gist options
  • Save akshygupt/1a2d077f51c17fe4cc33 to your computer and use it in GitHub Desktop.
Save akshygupt/1a2d077f51c17fe4cc33 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