include virtual not working

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
atrichtch
Forum Newbie
Posts: 18
Joined: Sun Apr 03, 2011 4:57 pm

include virtual not working

Post 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.
atrichtch
Forum Newbie
Posts: 18
Joined: Sun Apr 03, 2011 4:57 pm

Re: include virtual not working

Post by atrichtch »

OK, this is actually ASP code. The only way to do it in plain HTML is through frames.
mikosiko
Forum Regular
Posts: 757
Joined: Wed Jan 13, 2010 7:22 pm

Re: include virtual not working

Post by mikosiko »

Change the file extension of your page from .htm to .shtml and check if that works
atrichtch
Forum Newbie
Posts: 18
Joined: Sun Apr 03, 2011 4:57 pm

Re: include virtual not working

Post by atrichtch »

I did and it didn't. All it did was displaying the source code when loaded.
mikosiko
Forum Regular
Posts: 757
Joined: Wed Jan 13, 2010 7:22 pm

Re: include virtual not working

Post 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
atrichtch
Forum Newbie
Posts: 18
Joined: Sun Apr 03, 2011 4:57 pm

Re: include virtual not working

Post by atrichtch »

I'll check those out. Thanks.
Post Reply