467,910 Members | 1,606 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,910 developers. It's quick & easy.

Use of includes / virtual


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
  • viewed: 2385
2 Replies
Expert 2GB
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:

Mar 29 '07 #2
Expert 2GB
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.

Similar topics

1 post views Thread by Trevor | last post: by
25 posts views Thread by Martin Walke | last post: by
1 post views Thread by Steve | last post: by
1 post views Thread by Jay | last post: by
6 posts views Thread by William F. Zachmann | last post: by
3 posts views Thread by Jeff | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.