Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
57 Points
89 Posts
Nov 19, 2011 08:18 AM|LINK
I got it
this is the sample code:
<rule name="remove htm extensions"> <!--Removes the .htm 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" /> <add input="{REQUEST_FILENAME}" negate="true" pattern="(.*).htm" /> </conditions> <action type="Rewrite" url="{R:1}.htm" /> </rule>
rewrite
Claudio7810
Member
57 Points
89 Posts
Re: URL Rewriting - Remove all .htm extensions
Nov 19, 2011 08:18 AM|LINK
I got it
this is the sample code:
<rule name="remove htm extensions"> <!--Removes the .htm 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" /> <add input="{REQUEST_FILENAME}" negate="true" pattern="(.*).htm" /> </conditions> <action type="Rewrite" url="{R:1}.htm" /> </rule>rewrite