Attempting URL rewrite to strip .aspx

This commit is contained in:
Rick Falkvinge
2014-10-30 14:39:47 +01:00
parent 247481511c
commit b2d7c0cfe1
+13
View File
@@ -39,5 +39,18 @@
<requestLimits maxAllowedContentLength="41943040"/>
</requestFiltering>
</security>
<rewrite>
<rules>
<rule name="aspxcloak">
<!--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>
</rules>
</rewrite>
</system.webServer>
</configuration>