情景描述:
调试好的页面,使用IE访问正常,但是使用firefox就会显示全部的代码,访问的页面如下:
http://www.cgzg.net/index.shtml


一般来说,FireFox下浏览shtml文件是源代码是因为“AddType text/html”配置的错误,
解决办法如下:在Apache下配置shtml

vi httpd.conf  #331行左右

331    #AddType text/html .shtml
332    #AddOutputFilter INCLUDES .shtml

去掉以下两行前面的 #号
#AddType text/html .shtml
#AddOutputFilter INCLUDES .shtml

然后重启apache 测试访问ok!