SSI In Different Directories

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
qwertz
-


Joined: 17 Oct 2003
Posts: 15

PostPosted: Thu Apr 15, 2004 1:33 pm    Post subject: SSI In Different Directories Reply with quote

I've been using SSI include on many of my pages. I'm more of a neat person, so I like putting different pages in different directories. But I can't seem to access the ssi in other folders.

For example:
<!--#include file="../navjournal.htm" -->
Will not work.

I was wondering if there is a way to work around this.
Thanks!

Kevin
Back to top View user's profile Send private message
eznetlinks
-


Joined: 27 Sep 2003
Posts: 144

PostPosted: Thu Apr 15, 2004 2:28 pm    Post subject: Reply with quote

<!--#include virtual="/navjournal.htm" -->
Back to top View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Fri Apr 16, 2004 3:08 pm    Post subject: Re: SSI In Different Directories Reply with quote

qwertz,

Using .. in a directory name in SSI include directives is fobidden (for security reasons). You can instead enter the full virtual path of the file. If your SSI file is in /dir1/dir2/file.shtml, replace:
Code:
<!--#include file="../navjournal.htm" -->

with:
Code:
<!--#include virtual="/dir1/navjournal.htm" -->

_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group