Click to See Complete Forum and Search --> : SHTML directory tree navigation


richiebman
06-05-2004, 09:01 AM
I have converted my site to have .shtml extension and use includes all over the place. But I still haven't worked out how to call an include file that would require the browser to navigate back UP the directory tree. I tell a lie. I can do it on IIS, but when I upload it to my webspace it says the include file is not found.

In IIS this works:

<!--#include file="../includes/file.shtm"-->

putting the ../ enables this, like with regular html directory tree navigation.

But this doesn't doesn't work on an Apache web server.

Anything to do with

<!--#include vitual=".......etc???

Cheers,
R

richiebman
06-05-2004, 01:59 PM
Ok, I've half figured it out. Microsoft is crap.

The correct way to include a file in a different directory is by using:

<!--#include virtual="/1/2/file.shtm"-->

not using ../

The include virtual thing works on every server apart from Microsoft's IIS. But I do need it to work on IIS. Is there anyway I can fiddle with the servers configuration settings to allow this to work???

richiebman
06-05-2004, 06:13 PM
Apologies. My fault.

<!--#include virtual="/includes/file.shtm"-->

does work on IIS. The root directory is different on my home server compared to my web space.

P.S. Microsoft is still toilet.