PDA

View Full Version : SSI Include, How to reference root?


hossrod
12-29-2003, 02:40 AM
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!

dgray
12-29-2003, 04:11 AM
Try:

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

I think "file=" is only for relative paths from where you are...

hossrod
12-29-2003, 04:36 AM
That worked dude, THANKS!

[b]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">