简体   繁体   中英

Quotations above ssi file

I have installed Apache 2.2 on windows. I have turned on Includes and my shtml files include their respective html files.

Problem I am having is above each include file are two quotation marks " ".

<body>
<!--#include virtual="/includes/Header.html" -->
</body>

renders

<body>
" " 
html header from include
</body>

Possible solutions:

1) Remove the / before includes in <!--#include virtual="/includes/Header.html" -->

2) Supposing that the file which contains the include directives have also the .html extension, and calling your working folder C:/workingfolder , did you set the httpd.conf file as follows?

<Directory "C:/workingfolder">
    Options Indexes FollowSymLinks Includes
    ...
</Directory>

AddType text/html .shtml .html
AddOutputFilter INCLUDES .shtml .html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM