zoukankan      html  css  js  c++  java
  • 某.net网站的web.config文件

    <?xml version="1.0" encoding="gb2312"?>
    <configuration>
     <configSections>
      <section name="RewriterConfig" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter" />
     </configSections>
     
     
     <RewriterConfig>
     <Rules>
      <RewriterRule>
       <LookFor>~/c(\d{1,8})\.aspx</LookFor>
       <SendTo>~/list.aspx?cid=$1</SendTo>
      </RewriterRule>
      <RewriterRule>
       <LookFor>~/c(\d{1,8})p(\d{1,6})\.aspx</LookFor>
       <SendTo>~/list.aspx?cid=$1&amp;page=$2</SendTo>
      </RewriterRule>
      <RewriterRule>
       <LookFor>~/n(\d{1,8})c(\d{1,8})\.aspx</LookFor>
       <SendTo>~/show.aspx?id=$1&amp;cid=$2</SendTo>
      </RewriterRule>
      <RewriterRule>
       <LookFor>~/n(\d{1,8})c(\d{1,8})p(\d{1,8})\.aspx</LookFor>
       <SendTo>~/show.aspx?id=$1&amp;cid=$2&amp;page=$3</SendTo>
      </RewriterRule>
     </Rules>
     </RewriterConfig>

     <appSettings>
      <add key="Charset" value="gb2312" />
     </appSettings>
     
     <system.web>

      <compilation defaultLanguage="C#" debug="false"/>
      
      <!--如果为.net SDK 1.0及以前版本,请删除validateRequest="false" -->
      <pages validateRequest="false" enableSessionState="true" enableViewState="true"/>

      <customErrors mode="Off" />

      <globalization fileEncoding="gb2312" requestEncoding="gb2312" responseEncoding="gb2312" culture="zh-CN" />
      
      <httpRuntime maxRequestLength="2048" />
      
      <httpModules>
       <add type="URLRewriter.ModuleRewriter, URLRewriter" name="ModuleRewriter" />
      </httpModules>
      
      <httpHandlers>
       <add verb="*" path="*.aspx" type="URLRewriter.RewriterFactoryHandler, URLRewriter" />
       <add verb="POST,GET" path="ajaxpro/*.ashx" type="AjaxPro.AjaxHandlerFactory, AjaxPro"/>
      </httpHandlers>

     </system.web>

    </configuration>

  • 相关阅读:
    springboot -jar部署
    base64前端对登陆密码编码,后端解码
    数字择优( 计算一个数与一组数字中的哪一个数字大小最接近)
    求两个数组的最小差值
    url.openConnection()远程获取图片缺失
    HttpURLConnection 用法详解
    Eureka集群入门搭建
    Django基础(五)- form组件及django序列化
    django基础(四)- 分页组件
    Django基础(四)-cookie与session
  • 原文地址:https://www.cnblogs.com/pony/p/641727.html
Copyright © 2011-2022 走看看