IIS6.0中ISAPI伪静态设置图文教程
2012-07-18 22:04
369 查看
本文介绍在IIS6中.net项目伪静态重写路径的配置方法图解和示例。
1、右键点击 要设置网站的网站
2、属性 ——》主目录 ——》配置——》
3、如右侧窗口,找到 .aspx 扩展名——》编辑——》复制 可执行文件的路径——》关闭
![](http://www.cr173.com/up/2012-4/201246172435.gif)
![](http://www.cr173.com/up/2012-4/201246172342.gif)
4、点击 添加——》粘贴 刚复制的 可执行文件路径
5、扩展名填写 .html (如果是 .htm 或者 任意你想要的扩展都可以 前提是以后的应用程序扩展列表里边没有该扩展)
![](http://www.cr173.com/up/2012-4/2012040617244399586.gif)
6、不选中 确认文件是否存在
7、确定
iis6 web.config 伪静态配置方法
1、参数用()括起来,使用 $1 来获得参数。
2、多个参数的时候使用&分割。
3、把Intelligencia.UrlRewriter.dll添加到bin目录
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="rewriter" requirePermission="false" type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter"/>
</configSections>
<system.web>
<httpModules>
<add type="Intelligencia.UrlRewriter.RewriterHttpModule, Intelligencia.UrlRewriter" name="UrlRewriter"/>
</httpModules>
</system.web>
<rewriter>
<!--首页-->
<rewrite url="~/default.html$" to="~/default.aspx" processing="stop"/>
<!--新闻-->
<rewrite url="~/news/list-([A-Za-z0-9-]*).html$" to="~/NewsList.aspx?typeUrl=$1" processing="stop"/>
<rewrite url="~/news/list-([A-Za-z0-9-]*)-([0-9]*).html$" to="~/NewsList.aspx?typeUrl=$1&page=$2" processing="stop"/>
<!--新闻详细-->
<rewrite url="~/news/([A-Za-z0-9-]*).html$" to="~/NewsDetail.aspx?url=$1" processing="stop"/>
</rewriter>
</configuration>
1、右键点击 要设置网站的网站
2、属性 ——》主目录 ——》配置——》
3、如右侧窗口,找到 .aspx 扩展名——》编辑——》复制 可执行文件的路径——》关闭
![](http://www.cr173.com/up/2012-4/201246172435.gif)
![](http://www.cr173.com/up/2012-4/201246172342.gif)
4、点击 添加——》粘贴 刚复制的 可执行文件路径
5、扩展名填写 .html (如果是 .htm 或者 任意你想要的扩展都可以 前提是以后的应用程序扩展列表里边没有该扩展)
![](http://www.cr173.com/up/2012-4/2012040617244399586.gif)
6、不选中 确认文件是否存在
7、确定
iis6 web.config 伪静态配置方法
1、参数用()括起来,使用 $1 来获得参数。
2、多个参数的时候使用&分割。
3、把Intelligencia.UrlRewriter.dll添加到bin目录
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="rewriter" requirePermission="false" type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter"/>
</configSections>
<system.web>
<httpModules>
<add type="Intelligencia.UrlRewriter.RewriterHttpModule, Intelligencia.UrlRewriter" name="UrlRewriter"/>
</httpModules>
</system.web>
<rewriter>
<!--首页-->
<rewrite url="~/default.html$" to="~/default.aspx" processing="stop"/>
<!--新闻-->
<rewrite url="~/news/list-([A-Za-z0-9-]*).html$" to="~/NewsList.aspx?typeUrl=$1" processing="stop"/>
<rewrite url="~/news/list-([A-Za-z0-9-]*)-([0-9]*).html$" to="~/NewsList.aspx?typeUrl=$1&page=$2" processing="stop"/>
<!--新闻详细-->
<rewrite url="~/news/([A-Za-z0-9-]*).html$" to="~/NewsDetail.aspx?url=$1" processing="stop"/>
</rewriter>
</configuration>
相关文章推荐
- IIS6.0中ISAPI伪静态设置图文教程
- aspnet_isapi.dll设置图文方法.net程序实现伪静态
- 织梦DEDE网站程序动态化+静态化+伪静态设置(图文)教程
- Win2003服务器 IIS6.0 rewrite的设置图文教程
- aspnet_isapi.dll设置图文介绍.net的程序实现伪静态
- aspnet_isapi.dll设置图文介绍.net的程序实现伪静态
- aspnet_isapi.dll设置图文介绍.net的程序实现伪静态
- aspnet_isapi.dll设置图文方法.net程序实现伪静态
- PHPCMS手机站伪静态设置详细教程
- Win8系统设置阿里DNS图文教程
- MCAFEE麦咖啡设置教程之提速篇图文
- iptables入门教程--设置静态防火墙( step by step)
- BIOS设置 翻译中文图文教程(二)
- IIS 7.5 配置伪静态详细图文教程
- U盘装系统中bios怎么设置USB启动(图文教程)
- Win7系统修改文件格式(后辍)设置方法图文教程
- win8怎么设置宽带连接上网图文教程
- IIS无法运行asp的NTFS权限设置图文教程
- 苹果Xcode 证书生成、设置、应用完整图文教程
- win8.1系统设置一键进入休眠模式的图文教程