Referencing primary domain folder

I have a subdomain e.g.

I am quite happy working with subdomains but I would like to know the proper way to reference the
primary domain folder from I want to put some generic code here.

Do I use ‘…/’ to refer to the parent folder.



Yes, you should use ‘…/’ to refer to parent folder or root directory.

Only the parent folder. Unless you are 1 folder deep, …/ will not reference the root directory. To reference the root directory, you begin the reference with a slash. E.g. /folder/index.php

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.