net伪静态404问题处理

 时间:2026-02-15 09:55:13

1、正常情况下如果iis是7.0 或7.5版本,应该不存在这个问题。打开服务器查看一下iis是6.2版本。

net伪静态404问题处理

2、对需要伪静态站点进行设置。

net伪静态404问题处理

net伪静态404问题处理

3、其次项目的webconfig进行设置。1,

  <configSections>

    <section name="RewriterConfig"  type="URLRewriter.Config.RewriterConfigSerializerSectionHandler,URLRewriter" />

  </configSections>

  <RewriterConfig>

    <Rules>

       <RewriterRule>

        <LookFor>~/(\d{4})/(\d{2})/(\d{2})\.htm</LookFor>

        <SendTo>~/ShowBlogContent.aspx?year=$1&amp;month=$2&amp;day=$3</SendTo>

      </RewriterRule>

      

      

    </Rules>

  </RewriterConfig>

2,

 <httpHandlers>

      <add verb="*" path="*.htm" type="URLRewriter.RewriterFactoryHandler, URLRewriter" />

      <add verb="*" path="*.aspx" type="URLRewriter.RewriterFactoryHandler, URLRewriter" />

    </httpHandlers>

3,

 <system.webServer>

    <handlers>

      <add name="aspnethtml" path="*.htm" verb="GET,POST" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv4.0,bitness32" />

      <add name="aspnetzangdalei" path="*.aspx" verb="GET,POST" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv4.0,bitness32" />

    </handlers>

  </system.webServer>

net伪静态404问题处理

net伪静态404问题处理

net伪静态404问题处理

4、项目bin 文件夹引入 UrlRewriter.dll 文件,最后访问一下配置路径,是否和真是路径一致。

net伪静态404问题处理

  • Eclipse如何使用Java Code Template
  • jquery把复选框checkbox选中的值放入input框中
  • Ubuntu Server 下的网络配置
  • 图解Oracle登录及验证
  • 最新Tomcat8.5启动关闭重启各种方法版本详解
  • 热门搜索
    乌镇旅游攻略一日游 天津著名旅游景点 仁化旅游景点大全 旅游规划案例 安徽旅游景点介绍 普陀山旅游线路 七月去哪里旅游最好 临安旅游网 国外旅游的好地方 碧峰峡旅游