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

推荐订阅源

aimingoo的专栏
aimingoo的专栏
S
Securelist
博客园 - Franky
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
IT之家
IT之家
GbyAI
GbyAI
Microsoft Azure Blog
Microsoft Azure Blog
The Cloudflare Blog
云风的 BLOG
云风的 BLOG
N
News and Events Feed by Topic
AI
AI
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Schneier on Security
Schneier on Security
Attack and Defense Labs
Attack and Defense Labs
Vercel News
Vercel News
腾讯CDC
Google DeepMind News
Google DeepMind News
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
M
MIT News - Artificial intelligence
WordPress大学
WordPress大学
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
N
Netflix TechBlog - Medium
量子位
S
Schneier on Security
Hacker News: Ask HN
Hacker News: Ask HN
Cyberwarzone
Cyberwarzone
S
Security Affairs
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
N
News and Events Feed by Topic
T
Tenable Blog
PCI Perspectives
PCI Perspectives
MyScale Blog
MyScale Blog
L
Lohrmann on Cybersecurity
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
Cyber Attacks, Cyber Crime and Cyber Security
W
WeLiveSecurity
N
News | PayPal Newsroom
P
Proofpoint News Feed
O
OpenAI News
C
CERT Recently Published Vulnerability Notes
B
Blog
Cisco Talos Blog
Cisco Talos Blog
Microsoft Security Blog
Microsoft Security Blog
V
Visual Studio Blog
MongoDB | Blog
MongoDB | Blog
大猫的无限游戏
大猫的无限游戏
A
Arctic Wolf
Y
Y Combinator Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Spread Privacy
Spread Privacy

博客园 - 心愿

IIS上启用Gzip对网页进行压缩(图文) 健康养生:掌握规律,合理睡眠 SQL Server 数据库出现 置疑的处理方法 . Windows补丁:安装程序不能验证Update.inf文件的完整性,请确定加密服务正在此计算机上运行 Sql server WaitType 日志 【转载】办公室禁止QQ登录的用法 [转]SQL Server 2005新特性 [转]艾瑞咨询:网络招聘的顺势突围之道 [收藏]sql查询性能调试,用SET STATISTICS IO和SET STATISTICS TIME 关于未能创建 Mutex 问题的解决 二级域名共享Cookie时碰到的问题:Padding is invalid and cannot be removed [摘录]Windows Server十大隐患服务 [收集]自己编写一个SQL Server中用的lastindexof函数 [收集|整理]优化SQL Server数据库相关注意事项 [收集]精典诗词改篇:沁园春 车票 [转]NUnit2.0详细使用方法 [转]利用UrlRewriter 实现二级域名 熬夜——健康的天敌 Asp.net中基于Forms验证的角色验证授权
使用URLRewriter重写后,相同后缀后的真实静态文件无法访问的解决办法
心愿 · 2012-02-10 · via 博客园 - 心愿

2012-02-10 11:51  心愿  阅读(212)  评论(0)    收藏  举报

     在微软 URLRewriter  组件的基础了,根据自身需要,修改了一点,主要是 针对 配置文件 的设置这块。 一直使用它来进行伪静态处理,使用了 好几年了,期间也发现 相同后缀名 的真实静态文件 访问不了,只不过那时,没有去探究原因,而只是把 真实静态文件的后缀名改为其它 而解决了冲突问题。最近,网站还是决定把部分页面生成真正的静态文件以加快访问速度,同时为了 SEO,不能改变地址,也就是说  静态页面的 后缀名是 不能改变的了。只有寻找其它解决办法了。

    开始还以为是我修改后的版本有问题,又去 微软网站 下了一个原版下来对照。发现没问题。

    后来,在 GOGLE 上找到答案,只要在  Web.Config 配置文件里加上: 
 <httpHandlers>
  <add verb="*" path="*.html" type="System.Web.StaticFileHandler" />
  </httpHandlers>

   这段就解决了。