• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

php include path

gggino

New Pleskian
I have a website with multiple subdomains. All the pages of the principal domain and of all the subdomains need to access an include folder, where are the core php files of the website.

the include directory is in domain.com/httpd/include/

To avoid having to upload multiple copies of such folder, at the moment the solution I have found is to place all the directories of the subdomains inside the httpd directory of the domain

for example the directory for subdomain1.domain.com is in domain1.com/httpd/subdomain1

and then the subdomain pages include the files by putting include('../include/nameoffile.php');

Is it possible obatin the same result, but without putting the subdomain webfolders inside the httpd folder of the main domain?

i would prefer to keep the standard directory structure, also to avoid that somebody will access the pages by getting maindomain.com/subdomain/nameofpage.php instead of subdomain1.domain.com/nameofpage.php
 
Back
Top