服务器端包括不工作

时间:2016-12-10 20:41:02

标签: html ssi shtml

我正在尝试使用SSI将我的页脚调用到我的网站,但它无法正常工作。我不确定是否必须包含告诉服务器它是SSI的命令?

FOOTER FILE:

footer.shtml

<footer id="footer">
        <div>
            <div>
                <div>
                    <p class="source"><i>“Unless someone like you cares a whole awful lot,
                        Nothing is going to get better. It's not.” ― Dr. Seuss, The Lorax</i></p>

                </div>
                <div class="source">
                    <p>&copy; 2016 Climate Change. All Rights Reserved. </p>
                    <p>Terms of Use | Privacy Policy </p>
                </div>
            </div>
        </div>
    </footer>

打电话给文件:

<!--#include file="../climate-change/assets/resources/footer.shtml"-->

0 个答案:

没有答案