|
View previous topic
::
View next topic
|
| Author |
Message |
Matthew Seigneur
Joined: 21 Feb 2004
Posts: 47
Location: United Kingdom
|
|
| Back to top |
|
 |
Charlie
Joined: 22 Aug 2003
Posts: 3305
Location: UK
|
Posted: Fri Nov 26, 2004 12:40 pm
Post subject: Re: SSI's and subdomains
|
|
|
| Matthew Seigneur wrote: | the ssi's in the subdomain folder look like this:
<!--#include virtual="../left.shtml" -->
|
Hang on a minute while I get my crystal ball...
Assuming the included file is the same in both cases, is it possible that you need another "dot" in the pathname, since the subdomain directory is another layer down from the main directory?
(I'm shooting in the dark, here, but I thought I'd mention it.)
Failing that, have a word with your host as SSI and/or subdomains can be set up in funny ways.
Hope this helps,
Charlie. _________________ "Before I speak, I have something important to say."
- Groucho Marx |
|
| Back to top |
|
 |
Matthew Seigneur
Joined: 21 Feb 2004
Posts: 47
Location: United Kingdom
|
|
| Back to top |
|
 |
Debs
Joined: 16 Aug 2003
Posts: 4296
Location: NY
|
Posted: Fri Nov 26, 2004 2:56 pm
Post subject:
|
|
|
Ithink charlie meant that you should try
<!--#include virtual="blabla.domain.com/left.shtml" -->
Debs _________________ Learn how to turn keyphrases into quality, well-targeted articles your visitors and SE's will love with Gary Antosh's new ebook "Web Content Made Easy!" |
|
| Back to top |
|
 |
AllanGardyne
Site Admin
Joined: 02 Jul 2003
Posts: 6326
Location: by the beach, Australia
|
Posted: Sat Nov 27, 2004 10:09 pm
Post subject:
|
|
|
I get easily confused with directory levels, so I just put a copy of the included file in each directory, and then use the same SSI instruction to call up the included file. Would that work with sub-domains? _________________ Allan Gardyne
AssociatePrograms.com - You're here. Explore it! |
|
| Back to top |
|
 |
Charlie
Joined: 22 Aug 2003
Posts: 3305
Location: UK
|
Posted: Sun Nov 28, 2004 2:01 pm
Post subject:
|
|
|
| Debs wrote: | I think charlie meant that you should try
<!--#include virtual="blabla.domain.com/left.shtml" --> |
Just for the record, I did mean...
| Code: | | <!--#include virtual=".../left.shtml" --> |
That's one more dot assuming the subdomains were stored as subdirectories of your web home directory.
| AllanGardyne wrote: | | I get easily confused with directory levels, so I just put a copy of the included file in each directory, and then use the same SSI instruction to call up the included file. Would that work with sub-domains? |
It should. From a server's point of view, subdomains or even domains, are just pointers to directories (from a file location point of view). But assuming Matthew knows where the subdomains' files are actually stored relative to the root directory, I can't see how this should work if the dots method won't.
But this is a computer, remember. Go on prove me wrong!
| Matthew Seigneur wrote: | | Still no good... I'll get onto my webhost support and see what they can do!! |
I don't blame you. If it's not a typo (!), please let us know for future reference.
Cheers,
Charlie. _________________ "Before I speak, I have something important to say."
- Groucho Marx |
|
| Back to top |
|
 |
| View previous topic :: View next topic |
|