我已经在windows上安装了Apache2.2。我打开了Includes,并且我的shtml文件包含了它们各自的html文件。
我遇到的问题是,每个包含文件的上方都有两个引号“”。
<body>
<!--#include virtual="/includes/Header.html" -->
</body>渲染
<body>
" "
html header from include
</body>发布于 2012-07-18 14:00:20
可能的解决方案:
1)在包含在<!--#include virtual="/includes/Header.html" -->中之前删除/
2)假设包含include指令的文件也有.html扩展名,并调用您的工作文件夹C:/workingfolder,您是否按如下方式设置了httpd.conf文件?
<Directory "C:/workingfolder">
Options Indexes FollowSymLinks Includes
...
</Directory>
AddType text/html .shtml .html
AddOutputFilter INCLUDES .shtml .htmlhttps://stackoverflow.com/questions/11530587
复制相似问题