下载站

展开
精品推荐
UrlRewriter .NET伪静态重写组件(Intelligencia UrlRewriter)

UrlRewriter .NET伪静态重写组件(Intelligencia UrlRewriter)

服务器区大小:223.82MB语言: / 类别:网络工具系统: / WinXP, WinAll 提供:
应用介绍

在IIS6中.net项目伪静态重写路径的配置方法图解和示例。1、右键点击要设置网站的网站2、属性——》主目录——》配置——》3、如右侧窗口,找到.aspx扩展名——》编辑——》复制可执行文件的路径——》关闭4、点击添加——》粘贴刚复制的可执行文件路径5、扩展名填写.html(如果是.htm或者任意你想要的扩展都可以前提是以后的应用程序扩展列表里边没有该扩展)6、不选中确认文件是否存在7、确定iis6web.config伪静态配置方法1、参数用()括起来,使用$1来获得参数。2、多个参数的时候使用&分割。3、把Intelligencia.UrlRewriter.dll添加到bin目录<?xmlversion="1.0"?<configuration<configSections<sectionname="rewriter"requirePermission="false"type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler,Intelligencia.UrlRewriter"/</configSections<system.web<httpModules<addtype="Intelligencia.UrlRewriter.RewriterHttpModule,Intelligencia.UrlRewriter"name="UrlRewriter"/</httpModules</system.web<rewriter<!--首页--<rewriteurl="~/default.html$"to="~/default.aspx"processing="stop"/<!--新闻--<rewriteurl="~/news/list-([A-Za-z0-9-]*).html$"to="~/NewsList.aspx?typeUrl=$1"processing="stop"/<rewriteurl="~/news/list-([A-Za-z0-9-]*)-(*).html$"to="~/NewsList.aspx?typeUrl=$1&page=$2"processing="stop"/<!--新闻详细--<rewriteurl="~/news/([A-Za-z0-9-]*).html$"to="~/NewsDetail.aspx?url=$1"processing="stop"/</rewriter</configuration

Tags:伪静态.

应用推荐查看更多
热门下载查看更多
精选应用
点击查看更多
专题合集查看更多
热门专题查看更多
友情链接0投诉联系:ichaoinc@gmail.com