Subdomain for Subdirectory


#1

If I have a site already hosted by DreamHost and my directory tree looks like:
domainName.com/dir1/dir2/dir3/dir4/dir5/dir6

How do I set up the subdomain in the Control Panel to use /dir4 as my subdomain so that it can be accessed by:
dir4.domainName.com/dir5 ?

Thanks in advance for your help.


#2

Well dir4.domainname.com could be anything, but I assume you want the name for effect.

  1. Create the subdomain “dir4.domainname.com
  2. Create the folder “dir5” within that subdomain.
  3. In the control panel, go to Domains > Remap Sub-Dir.
  4. Enter the correct directory you want to map, in this case “http://domainname.com/dir1/dir2/dir3/dir4/dir5/
  5. Enter then path where you want the files to be reached, in this case “home/username/dir4.domainname.com/dir5”

Promo Code: [color=#CC0000]FREEZAP[/color] - Save $50 on any plan and gain a free lifetime unique IP! Or… Save $97 on yearly plans with [color=#CC0000]DREAMZAP[/color].


#3

Or, since there is more than one way to skin a cat, you can also set up the subdomain fully-hosted with domainName.com/dir1/dir2/dir3/dir4 as its root directory, or you can set the subdomain up as a redirected domain to the full address within the main domain of the appropriate path.

– Dan