第1步:在正則中優(yōu)先替換FCK編輯器文件夾的路徑,并替換為htm后綴。
復(fù)制代碼代碼如下:
<RewriterRule>
<LookFor>~/fckeditor/(.*).html</LookFor>
<SendTo>~/fckeditor/$1.htm</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>(.*).html</LookFor>
<SendTo>$1.aspx</SendTo>
</RewriterRule>
第2步:為防止出現(xiàn)“沒(méi)有為擴(kuò)展名".htm”注冊(cè)的生成提供程序”的錯(cuò)誤,在WEB.CONFIG中加入
復(fù)制代碼代碼如下:
<compilation debug="false">
<buildProviders>
<add extension=".htm" type="System.Web.Compilation.PageBuildProvider" />
</buildProviders>
</compilation>
第3步:將fckeditro中所有的html后綴修改為htm,為避免FCK鏈接中的錯(cuò)誤,再用DW將FCK內(nèi).html的代碼批量替換為.htm
結(jié)束語(yǔ):經(jīng)修改后,本人的FCK已經(jīng)能正常使用,但因?yàn)镕CK內(nèi)眾多功能,并不能一一嘗試,有時(shí)間的朋友或者追求完美的朋友可以自己多嘗試一下。