Page 1 of 1

include virtual not working

Posted: Tue Apr 12, 2011 8:08 am
by atrichtch
Hi,

I wanted to include the same header in multiple files. I put

Code: Select all

<!--#include virtual="header.htm" -->
at the beginning of my html. It works fine inside DreamWeaver; yet when I put it on localhost, the header is missing. Any ideas what could be wrong?
Thanks.

Re: include virtual not working

Posted: Wed Apr 20, 2011 10:27 am
by atrichtch
OK, this is actually ASP code. The only way to do it in plain HTML is through frames.

Re: include virtual not working

Posted: Wed Apr 20, 2011 10:55 am
by mikosiko
Change the file extension of your page from .htm to .shtml and check if that works

Re: include virtual not working

Posted: Thu Apr 21, 2011 9:35 am
by atrichtch
I did and it didn't. All it did was displaying the source code when loaded.

Re: include virtual not working

Posted: Thu Apr 21, 2011 10:44 am
by mikosiko
depending on what web server are you using this 2 links could help you to work on your issue

http://httpd.apache.org/docs/current/howto/ssi.html

http://globalmoxie.com/help/faq/config/enable-ssi.shtml

Re: include virtual not working

Posted: Wed May 04, 2011 1:48 pm
by atrichtch
I'll check those out. Thanks.