[英]Quotations above ssi file
我已經在Windows上安裝了Apache 2.2。 我打開了Includes,我的shtml文件包括了它們各自的html文件。
我在上面的問題每個包含文件都是兩個引號“”。
<body>
<!--#include virtual="/includes/Header.html" -->
</body>
渲染
<body>
" "
html header from include
</body>
可能的解決方案:
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 .html
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.