asp.net - IIS URL Rewrite Rule - IIS 7 -
i've following functional asp.net url: www.netway.com/z/about.aspx
, want shorten url www.netway.com/about
. when users type www.netway.com/about
in browser, point www.netway.com/z/about.aspx
.
i've tried following rewrite rule it's not working:
<rewrite> <rules> <rule name="shorter url"> <match url="about" /> <action type="rewrite" url="z/about.aspx" logrewrittenurl="true" /> </rule> </rules> </rewrite>
hi can please following link.
it's showing way remove .aspx extensions.
http://forums.iis.net/p/1150350/2003891.aspx
you can following also. http://www.iis.net/learn/extensions/url-rewrite-module/creating-rewrite-rules-for-the-url-rewrite-module
Comments
Post a Comment