惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Help Net Security
Help Net Security
G
Google Developers Blog
雷峰网
雷峰网
WordPress大学
WordPress大学
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Engineering at Meta
Engineering at Meta
Security Latest
Security Latest
T
Threat Research - Cisco Blogs
AWS News Blog
AWS News Blog
F
Full Disclosure
C
Cybersecurity and Infrastructure Security Agency CISA
T
The Exploit Database - CXSecurity.com
J
Java Code Geeks
U
Unit 42
C
Cyber Attacks, Cyber Crime and Cyber Security
V
V2EX
C
Cisco Blogs
博客园 - 司徒正美
Project Zero
Project Zero
L
LINUX DO - 热门话题
阮一峰的网络日志
阮一峰的网络日志
Blog — PlanetScale
Blog — PlanetScale
Scott Helme
Scott Helme
A
About on SuperTechFans
Hugging Face - Blog
Hugging Face - Blog
S
Securelist
小众软件
小众软件
aimingoo的专栏
aimingoo的专栏
S
Schneier on Security
G
GRAHAM CLULEY
酷 壳 – CoolShell
酷 壳 – CoolShell
Cyberwarzone
Cyberwarzone
MongoDB | Blog
MongoDB | Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 叶小钗
T
Threatpost
Recorded Future
Recorded Future
C
CXSECURITY Database RSS Feed - CXSecurity.com
宝玉的分享
宝玉的分享
N
News and Events Feed by Topic
人人都是产品经理
人人都是产品经理
The Register - Security
The Register - Security
S
Security Archives - TechRepublic
博客园 - Franky
N
News | PayPal Newsroom
Simon Willison's Weblog
Simon Willison's Weblog
S
SegmentFault 最新的问题
W
WeLiveSecurity
A
Arctic Wolf
B
Blog

博客园 - 永不放弃-Jack wu

Sql Service 常用函数 select时锁定记录问题 实现一个用户取过的数据不被其他用户取到 确保绝对随机数(无重复) C# 循环产生多个随机数重复问题 中国移动MM7 API用户手册(八) 中国移动MM7 API用户手册(七) 中国移动MM7 API用户手册(五) - 永不放弃-Jack wu 中国移动MM7 API用户手册(六) 中国移动MM7 API用户手册(四) 中国移动MM7 API用户手册(三) 中国移动MM7 API用户手册(二) 中国移动MM7 API用户手册(一) ASP.NET中进行消息处理(MSMQ) 三 ASP.NET中进行消息处理(MSMQ) 二 ASP.NET中进行消息处理(MSMQ) 一 五险一金相关知识(转) - 永不放弃-Jack wu 彩信SMIL文件学习 Log4Net使用指南 - 永不放弃-Jack wu
在IIS7下,利用Intelligencia.UrlRewriter进行URLReWrite
永不放弃-Jack wu · 2011-07-06 · via 博客园 - 永不放弃-Jack wu

不同于IIS6的配置,此处稍有不同!
当然大家想知道在II6下的配置,大家可以直接上官方网站,有详细的帮助文档,这里只是简单的说明一下在Windows 7下的IIS7里的配置方法。

首先,还是要打开一下IIS7,对需要URLReWrite的站点进行配置:

如图,打开应用程序池,找到需要设置的站点,将“托管模式”设置为集成!

最后,就是配置站点下的“Web.config”文件了,具体的配置如下:
view plaincopy to clipboardprint?
<?xml version="1.0" encoding="utf-8"?> 
 
<configuration> 
  <configSections> 
    <!--UrlRewriter--> 
    <section name="rewriter" requirePermission="false" type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter" /> 
  </configSections> 
 
  <!--UrlRewriter--> 
  <rewriter> 
    <rewrite url="~/ShowNews/(\d+).html$" to="~/ShowNews.aspx?id=$1" processing="stop" /> 
    <rewrite url="~/product/(\d+).html$" to="~/ShowProduct.aspx?id=$1" processing="stop" /> 
  </rewriter> 
 
  <system.web>   
    <!--UrlRewriter Windows 2003 IIS 6 Config Setting--> 
    <!--<httpModules> 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<add type="Intelligencia.UrlRewriter.RewriterHttpModule,Intelligencia.UrlRewriter" name="UrlRewriter" /> 
&nbsp;&nbsp;&nbsp;&nbsp;</httpModules>--> 
  </system.web> 
  <system.webServer> 
    <!--UrlRewriter Windows 7 II7 Config Setting--> 
    <modules> 
        <add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule,Intelligencia.UrlRewriter" preCondition="" /> 
    </modules> 
  </system.webServer> 
      
</configuration> 

文件里已经有注释了,就不多说了,呵呵!就这么简单!