FIRST ADD WEB.CONFIGRATION file in your website
<system.webServer>
<rewrite>
<rules>
<rule name="RewriteASPX">
<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>
And NOW PUT THIS page name in the link as it is for Example see this:-
<a href="Index">Sign in</a> 1.Use this
<a href="Index">Sign in</a> 1.Use this
0 comments: