I currently have three sites: ggwsl.org, littleschool.org and baywoodelementary.org. Each is hosted on a separate account with DreamHost. They all use the same code (php).
I want to move them to one account (probably a new one named iclarke.org) and use sub-folders for the different sites, and different database names.
Is this possible?
Example of hoped for directory structure for the new account:
/phpLib <== All the common php code
/ggwsl <= www.ggwsl.org would map here
/lschool <== www.littleschool.org would map here
/baywood <== www.baywoodelementary.org would map here
Each sub-folder would only have it's own unique index.php file.
If this is possible then I have more specific questions (basically, how? I need the step-by-step details):
1) For example, how do I get ggwsl.org to resolve to iclarke.org/ggwsl, yet make it transparent to my users, so that their browsers still displays www.ggwsl.org and not the full path?
2) What would be the DOCUMENT_ROOT for these subfolders?
3) What would be the syntax for php include files or html code?
For example if I have the file: ggwsl/index.php and it wants to include /PhpLib/System.php, what is the path?
Would include( "PhpLib/System.php" ) work? Or would I be prevented from using even include( "/../PhpLib/System.php" )?
In the case of the ggwsl site, to what would the following HTML code resolve?
Would it look in /images or ggwsl/images
3) And if this should all work out, then what is the recommended method for migration? To create a new account, migrate existing accounts, and then delete old accounts. Or should I seek to rename an existing account, and them migrate the others?
Sorry, I could not find the detailed answer to these questions in the forum. If the answers are already posted, please direct me.