[thelist] SSI

Mark Gregor mark at velir.com
Sat Dec 23 17:02:09 CST 2000

Why not just use root relative links?  


<!--#include virtual="" -->

would change to:

<!--#include virtual="/includes/foo.txt" -->

That way it doesn't matter what the domain is and you can move the files from one server to another without changing anything.  Just make sure you're directory structure is the same on each box.

And, I think, the reason the first example won't work is that the include directive can't make http connections, it just expects standard directory paths.  But I could be wrong...

Anyway, hope this helps!


> -----Original Message-----
> From: thelist-admin at lists.evolt.org
> [mailto:thelist-admin at lists.evolt.org]On Behalf Of Jay Fitzgerald
> Sent: Friday, December 22, 2000 8:19 PM
> To: thelist at lists.evolt.org
> Subject: [thelist] SSI
> I know that to "include" external files within the document root of a
> site you can either use "virtual" or "file"....
> BUT - let's say you have a linux box that you want to test your code on
> prior to putting it LIVE....in doing this you want the changeover to be
> as painless as possible so you want to direct the include to use
> something like:
> <!--#include virtual="" -->
> that way when the time does come to put the site live, all you would
> have to do is a global search and replace for the IP in all of your docs
> and change it to http://www.mysite.com.....
> The problem is that the above example does not work....Does anyone know
> how this task can be accomplished easily - how to include the full url
> of an ip?
> Thanks -
> Jay
> ---------------------------------------
> For unsubscribe and other options, including
> the Tip Harvester and archive of TheList go to:
> http://lists.evolt.org Workers of the Web, evolt ! 

More information about the thelist mailing list