Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SSI not working with multiple directories

Status
Not open for further replies.

xsw1971

Programmer
Jun 21, 2001
153
US
I have a directory that contains an include file called header.htmlf that contains our corporate website header. There are two links in this file that have onmouseover images and onmouseout images. When I view this file, all images and links are present and functioning.

I have another directory that contains a file called template.shtml that uses the include file via <!--#include virtual=&quot;/include/header.htmlf--> When I view this file, all the contents of the header.htmlf file get pulled in, EXCEPT for the onmouseover/out images. The links are still functioning (so I know the #include works).

When I put these two files in the exact same directory and use <!--#include file=&quot;header.htmlf-->, everything works beautifully. We have a large website with numerous directories, and this header.htmlf file will be included on EVERY page - I need to have SSI functioning using multiple directories. I have tried everything I can think of.

Any suggestions??? Thanks!
 
How are the images in the header.htmlf file referenced? If you're using relative paths to them, that may be the problem. The directory of the template.shtml page is the current directory, so all the path names would have to be relative to that. What you should probably do is make the pathnames to the images absolute. Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
wow...works like a charm! (Thought I'd thought of everything...) Thanks a bunch!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top