SSI Include, How to reference root?

Discussion in 'HTML / PHP / JavaScript / CSS' started by hossrod, Dec 29, 2003.

  1. When using a statment like:

    <!-- #include file="include/site_header.asp" -->

    What do I need to do to have the path in the above command reference the root of my site? In links, I just use "/include/site_header.asp", but using the preceeding '/' in the SSI include statement generates an error.

    I'm doing this so that pages in other folders dont need to have custom paths. I would like them to all have the same path.

    TIA!
     
  2. Try:

    <!-- #include virtual="/include/site_header.asp" -->

    I think "file=" is only for relative paths from where you are...
     
  3. That worked dude, THANKS!

    quote:Originally posted by dgray

    Try:

    <!-- #include virtual="/include/site_header.asp" -->

    I think "file=" is only for relative paths from where you are...
    </blockquote id="quote"></font id="quote">
     

Share This Page