Subdomains & Directories


#1

New here and learning the DreamHost ropes…let’s hope my experience is a dream!

I want to verify how to organize directores for subdomains, so I know where the files are that should be uploaded to that subdomain.

Suppose I have http://quirk.example.com

Would I go to Remap a Subdirectory, then enter:
Fully-hosted URL to remap: http://quirk.example.com remap to http://quirk.example.com/quirk

?

Is that right? If not, then what?


#2

Subdomains are just like domains. They’re independent entities, so they’re not nested in a subdirectory. Your home directory will end up looking like:
Mail/
logs/
example.com/
subdomain.example.com/
someothercrazydomain.com/
exampledatadirectory/

-Scott


#3

If you’re building a new site then just Add New Sub-Domain in the form Scott mentioned (quirk.example.com)

If the site structure already exists (eg. moved from another host) ReMapping will work as you’ve written in your post, but .htaccess 301 redirects will be sure to retain any search engine rankings you’ve accumulated for the subdomain. If this is the case, then create a .htaccess file in [color=#0000CC]quirk.example.com[/color] with the contents:

redirect 301 / http://www.example.com/quirk/

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost


#4

Excellent, Scott!

If you know SemioLogic Pro, I want to hire you!