RootsWeb.com Mailing Lists
Total: 1/1
    1. Re: [ROOTSWEB-HELP] include virtual vs include file
    2. Glenn Gilbert
    3. It depends on where the file calling the include is located... What works on Rootsweb - file calling the include is in root directory <!--#include virtual="includes/footer0b.htm"--> file calling the include is in subdirectory under root <!--#include virtual="../includes/footer0b.htm"--> file calling the include is in a subdirectory of subdirectory under root <!--#include virtual="../../includes/footer0b.htm"--> Repeating Rootsweb is running Apache/2.2.3 (CentOS) Apache is the web server CentOS is the operating system IIS = Internet Information Server is the web server (a Microsoft product) Windows is the operating system You have to use what works on the Rootsweb server :-( Glenn Gilbert wrote: > It depends on where the file calling the include is located... > > What works on Rootsweb - > file calling the include is in root directory > <!--#include virtual="includes/footer0b.htm"--> > file calling the include is in subdirectory under root > <!--#include virtual="../includes/footer0b.htm"--> > file calling the include is in a subdirectory of subdirectory under root > <!--#include virtual="../../includes/footer0b.htm"--> > > Repeating Rootsweb is running Apache/2.2.3 (CentOS) > Apache the web server > CentOS the operating system > > IIS = Internet Information Server the web server > Windows the operating system > > George Waller wrote: >> Hi Glenn, >> Thanks for your reply. >> >> This works on RootsWeb: >> <!--#include virtual="../00_ssi/banner.htm" --> >> This does not work: >> <!--#include virtual="/00_ssi/banner.htm" --> >> <!--#include file="../00_ssi/banner.htm" --> >> <!--#include virtual="00_ssi/banner.htm" --> >> >> This works on my local PC web server (IIS7): >> <!--#include virtual="/00_ssi/banner.htm" --> >> <!--#include file="../00_ssi/banner.htm" --> >> <!--#include virtual="00_ssi/banner.htm" --> >> This does not work: >> <!--#include virtual="../00_ssi/banner.htm" --> >> >> So, barring inept errors on my part, it seems that the only thing that >> works on RootsWeb is the *only* thing that doesn't work on my local >> web server. And, what works is not what you said would work :-( >> >> Jim Rickenbacker... you use RootsWeb and IIS. What works for you? >> Others please speak to what works on RootsWeb. >> Many thanks! >> George >

    01/18/2010 02:01:21