Forum Moderators: open

Message Too Old, No Replies

Including Files Above Root

         

woop01

2:16 pm on Jul 10, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



We run about half a dozen forums on the same forum and they each use the same basic forum code.

I'd like to set them up so that I can edit them all at once instead of updating a page and uploading it to each of the six sites. We use extensive SSI within each site but would like to extend that to manage all of the sites at once.

The basic file structure is something like this...

/webs/site1/forum/
/webs/site2/forum/
/webs/site3/forum/

...and the "site1" folder is the root for each site.

Is there a way to include code from the "/webs/" folder in a file located within the "/webs/site1/forum/" folder?

Corey Bryant

3:03 pm on Jul 11, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have you tried to give site2 permissions to site1? That has worked with us in the past

-Corey

ruug

5:44 pm on Jul 11, 2007 (gmt 0)

10+ Year Member



I do this all the time using parent paths. You might have to enable parent paths in IIS under Home Page >> Configuration. Two dots and a slash will navigate up one level.


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

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