By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,447 Members | 1,136 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,447 IT Pros & Developers. It's quick & easy.

Use of includes / virtual

P: 1
Hello--

I have an .html page that I'm trying to use a SSI (footer) and other headers, but it's not showing up. I've tried multiple combinations, but nothing is working. I understand the differences between the two...

<!--#include file="footer.html"-->
<!--#include file="footer.shtml"-->
<!--#include virtual ="/includes/footer.asp" -->
<!--#include virtual ="includes/footer.asp" -->
<!--#include virtual="footer.html"-->
<!--#include virtual="footer.html"-->
<!--#include file="footer.asp"-->
<!--#include virtual ="includes/footer.asp" -->
<!--#include virtual ="includes/footer.shtml" -->

I've got my footer in the same directory as my index page and I also got the footer in the /includes/ directory. I've tried naming the page that calls this file: index.html and index.htm... I'm beginning the think that the issue lies on the server.

I'm running out of ideas!
Mar 28 '07 #1
Share this Question
Share on Google+
2 Replies


KevinADC
Expert 2.5K+
P: 4,059
most servers force you to use a .shtml or .shtm extension for pages with SSI tags, so try renaming your pages accordingly and see if that helps:

index.shtml
Mar 29 '07 #2

KevinADC
Expert 2.5K+
P: 4,059
I'm not sure but I don't know if you can use a shtml document in an SSI tag:

<!--#include virtual ="includes/footer.shtml" -->

I mean you can, but I don't know if any SSI tags contained in the footer.shtml page will be parsed or not. Worth a try though.
Mar 29 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.