• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Relative virtual include

I

inCharge.co.uk

Guest
I got an absolute virtual include to work like this:

<!-- #INCLUDE VIRTUAL="/incharge.co.uk_non_ssl/blah/Include.asp" -->

where in non-plesk land it would be

<!-- #INCLUDE VIRTUAL="/blah/Include.asp" -->

but I couldn't get a relative virtual include to work. e.g.

<!-- #INCLUDE VIRTUAL="blah/Include.asp" -->

If the folder containing this script has a virtual folder in it then this SHOULD work. Anyone know how to do it? Obviously I want to avoid customising every site's paths for the site.co.uk_non_ssl bit.

And before you say to use INCLUDE FILE instead, every one of my customers sites uses the same code installed in one place on the disk and accessed via a virtual folder. So I HAVE to use a virtual include.

Thanks, Julian
 
Back
Top