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

asp.net 伪静态规则

asp.net 伪静态规则

www.x.com/list.aspx?id=1

伪静态后:www.x.com/1/



<RewriterRule>
        <LookFor>~/([a-zA-Z]*)/index.html</LookFor>
<SendTo>
<![CDATA[ ~/list.aspx?id=$1]]></SendTo>
</RewriterRule>


我现在找到一些规则可以实现:www.x.com/1/index.html

具体www.x.com/1/ 的伪静态规则咋写? --------------------编程问答-------------------- 除 --------------------编程问答--------------------
引用 楼主 XiAnTianYiChuanMei 的回复:
asp.net 伪静态规则

www.x.com/list.aspx?id=1

伪静态后:www.x.com/1/



<RewriterRule>
        <LookFor>~/([a-zA-Z]*)/index.html</LookFor>
<SendTo>
<![CDATA[ ~/list.aspx?id=$1]]></SendTo>
</RewriterRule>


我现在找到一些规则可以实现:www.x.com/1/index.html

具体www.x.com/1/ 的伪静态规则咋写?


路由走起 --------------------编程问答-------------------- 直接使用MVC吧!!! --------------------编程问答-------------------- 额,,,,,,规则的高手,,,帮忙看看 --------------------编程问答-------------------- 规则的高手,,,帮忙看看 
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,