网站导航网学 原创论文 原创专题 网站设计 最新系统 原创论文 论文降重 发表论文 论文发表 UI设计定制 论文答辩PPT格式排版 期刊发表 论文专题
返回网学首页
网学原创论文
最新论文 推荐专题 热门论文 论文专题
当前位置: 网学 > 设计资源 > .Net编程 > 正文

.net伪静态的配置的简单说明

论文降重修改服务、格式排版等 获取论文 论文降重及排版 论文发表 相关服务

webconfig文件的配置

<RewriterConfig>
    <Rules>
      <!-- 规则,可以使用正则表达式 -->
      <RewriterRule>
        <LookFor>~/User_Sc_all.html</LookFor>
        <SendTo>~/Users_Sc.aspx</SendTo>
      </RewriterRule>
      <RewriterRule>
        <LookFor>~/Product_ShowInfo_all(.[0-9]*)\.html</LookFor>
        <SendTo>~/Product_ShowInfo.aspx?pID=$1</SendTo>
      </RewriterRule>
      <RewriterRule>
        <LookFor>~/Product_ShowInfo1_all(.[0-9]*)\.html</LookFor>
        <SendTo>~/Product_ShowInfo1.aspx?pID=$1</SendTo>
      </RewriterRule>
      <RewriterRule>
        <LookFor>~/wjNews_Class_(\d{1,6})_(\d{1,6})\.html</LookFor>
        <SendTo>~/wjNews_Class.aspx?page=$1&amp;Big_Id=$2</SendTo>
      </RewriterRule>
                                                 
               </Rules>
  </RewriterConfig>
 <system.web>

页面上访问的时候跳转页面response.redirect("~/Users_Sc._all.html");

url里面显示的是Users_Sc_all.html.

而实际是是访问的Users_Sc.aspx页面.

  • 上一篇资讯: 无限极分类附表结构
  • 下一篇资讯: .Net性能优化点滴知识点
  • 设为首页 | 加入收藏 | 网学首页 | 原创论文 | 计算机原创
    版权所有 网学网 [Myeducs.cn] 您电脑的分辨率是 像素
    Copyright 2008-2020 myeducs.Cn www.myeducs.Cn All Rights Reserved 湘ICP备09003080号 常年法律顾问:王律师