伪静态下不能使用FCKeditor的解决方法
时间:2023-02-03 06:54:20
在使用FCKeditor的时候,可能会碰到以下这个问题,就是在编辑器页面出错,提示为:找不到页面/fckeditor/editor/fckeditor.aspx 那是因为正则中把fckeditor.html也替换成aspx的问题,而实际上并不存在后缀为ASPX的文件。针对这些错误,我采用了下面的方法:
第1步:在正则中优先替换FCK编辑器文件夹的路径,并替换为htm后缀。
<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
结束语:经修改后,本人的FCK已经能正常使用,但因为FCK内众多功能,并不能一一尝试,有时间的朋友或者追求完美的朋友可以自己多尝试一下。
标签:伪静态,FCKeditor
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
python装饰器代码深入讲解
2023-08-17 20:59:19
Golang中goroutine和channel使用介绍深入分析
2023-07-07 16:51:48
给应用部分的js代码设定一个统一的入口
2024-05-05 09:15:59
asp怎么实现中文字符串按声母检索
2010-05-16 21:19:00
PHP中使用BigMap实例
2024-05-22 10:07:02
详解ASP中断开记录集的使用方法
2008-02-13 08:35:00
python中的json总结
2022-03-07 15:51:30
Python自定义聚合函数merge与transform区别详解
2022-09-14 11:45:30
mysql community server 8.0.12安装配置方法图文教程
2024-01-21 19:28:04
一行代码生成Tableau可视化图表的方法
2022-09-21 12:01:47
![](https://img.aspxhome.com/file/2023/6/117946_0s.png)
Vue新一代状态管理工具Pinia的具体使用
2024-05-09 15:11:53
![](https://img.aspxhome.com/file/2023/8/126558_0s.jpg)
用 Python 脚本实现电脑唤醒后自动拍照并截屏发邮件通知
2023-08-30 14:15:44
![](https://img.aspxhome.com/file/2023/5/62555_0s.png)
Go语言实现定时器的方法
2024-02-09 04:55:21
javascript实现双端队列
2024-05-02 16:18:58
关于python通过新建环境安装tfx的问题
2022-06-28 19:47:21
![](https://img.aspxhome.com/file/2023/1/109641_0s.jpg)
MySQL 5.7增强版Semisync Replication性能优化
2024-01-22 21:39:04
![](https://img.aspxhome.com/file/2023/8/124858_0s.jpg)
javascript实现圣旨卷轴展开效果(代码分享)
2024-04-10 11:03:29
![](https://img.aspxhome.com/file/2023/1/136801_0s.gif)
Win8下python3.5.1安装教程
2021-11-15 13:14:54
![](https://img.aspxhome.com/file/2023/7/121877_0s.jpg)
自动完成autoComplete
2011-01-17 18:01:00
MySQL产生死锁原因分析讲解
2024-01-25 10:39:19
![](https://img.aspxhome.com/file/2023/0/67510_0s.png)