当前位置:编程学习 > C#/ASP.NET >>

UrlRewritingNet 实现重写问题

把http://localhost:3263/URLWrite/shounews.aspx?id=127
重写为http://localhost:3263/URLWrite/shounews.aspx/127.aspx如何实现。
在web.config 里规则是不是这样写的:
<add name="UserAccount" virtualUrl="^~/(\d+).aspx" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/shounews.aspx?id=$1" ignoreCase="true" />
请各位帮忙解决一下!
谢谢! --------------------编程问答-------------------- 参考:
动态网页变静态
--------------------编程问答-------------------- http://www.shilicn.com/
http://www.65066.com.cn/
帮顶下 --------------------编程问答--------------------
<rewrite url="^~/URLWrite/shounews/(\d+).aspx$" to="~/URLWrite/shounews.aspx?id=$1" /> 
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,