IIS7中URL重写!IIS提示错误404无法找到资源
MOTA 2008-03-20 02:17:55 webconfig.config文件中已添加如下内容
---------------------------------------
<!-- url重写 -->
<configSections>
<section name="RewriterConfig" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler,URLRewriter" />
</configSections>
<RewriterConfig>
<Rules>
<RewriterRule>
<LookFor> ~/main.html </LookFor>
<SendTo> ~/main.aspx </SendTo>
</RewriterRule>
</Rules>
</RewriterConfig>
<system.web> 标签中包含如下内容
-----------------------
<!-- url重写 -->
<httpModules>
<add type="URLRewriter.ModuleRewriter, URLRewriter" name="ModuleRewriter" />
</httpModules>
-------------------------------------------------
BIN目录下拥有URLRewriter.dll
-------------------------------------------------
还需要什么设置?不是写完了WEBCONFIG就可以了么??
我浏览main.html他出现错误404无法找到内容
我用的是IIS 7的服务器
请高人解答。。。