110,535
社区成员
发帖
与我相关
我的任务
分享
<RewriterRule>
<LookFor>~/fckeditor/(.*).html</LookFor>
<SendTo>~/fckeditor/$1.htm</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>(.*).html</LookFor>
<SendTo>$1.aspx</SendTo>
</RewriterRule>
第2步:为防止出现“没有为扩展名".htm”注册的生成提供程序”的错误,在WEB.CONFIG中加入
<compilation debug="false">
<buildProviders>
<add extension=".htm" type="System.Web.Compilation.PageBuildProvider" />
</buildProviders>
</compilation>
第3步:将fckeditro中所有的html后缀修改为htm,为避免FCK链接中的错误,再用DW将FCK内.html的代码批量替换为.htm
第3步我就只是将fckeditor.html 改成 fckeditor.htm<div><input type="hidden" id="FCKeditor1" name="FCKeditor1" value="" /><input type="hidden" id="FCKeditor1___Config" value="HtmlEncodeOutput=true" /><iframe id="FCKeditor1___Frame" src="/fckeditor/editor/fckeditor.html?InstanceName=FCKeditor1&Toolbar=Default" width="765px" height="400px" frameborder="no" scrolling="no"></iframe></div>
就这段 /fckeditor/editor/fckeditor.html?InstanceName=FCKeditor1&Toolbar=Default
这个路径是存在的 能找到fckeditor.html文件