Creating a Sub-Domain


#1

With a DreamHost hosted domain, is it possible to create a subdomain (ex., subdomain.example.com) and point it to a directory (ex., www.example.com/subdomain)?

I know enough that I need to create a CNAME record in the DNS section, but I’m not sure what to use as its value.

Thank you!


#2

Why do you need to point it at a subdirectory?

By default, a subdomain subdomain.example.com would be mapped to “/user/yourusername/subdomain.example.com”. You could map it to a subdirectory of an existing domain’s directory or you could simply redirect it to a subsection of your primary domain. There would be duplicate content if you did the former with various SEO implications.

Also, what kind of content do you have at that location? If it’s a webapp like WordPress, there are some additional complications because links will be dynamically generated to the domain and location that WordPress is configured to.

Free unique IP and $67 off with promo code [color=#CC0000]FLENSFREEIP67[/color] or use [color=#CC0000]FLENS97[/color] for $97 off. Click here for more options


#3

You know what? I was confused. I didn’t realize you can create a sub-domain through the “Manage Domains” section.

Thanks for clearing that up!


#4

I’m happy you figured it out! There’s a lot to learn when you’re first getting started or if you’re coming from CPanel. Or it can just be the end of a long day! :slight_smile:

Free unique IP and $67 off with promo code [color=#CC0000]FLENSFREEIP67[/color] or use [color=#CC0000]FLENS97[/color] for $97 off. Click here for more options


#5

so, if i go to the manage domains panel for kayakityak.com, is this what i do…

domain to host: aquaholic.kayakityak.com
FTP user (stays as kayakityak)
Specify your web defaults to: /…/…/aquaholic.kayakityak/ (and i stay with the default)

and the domain becomes www.aquaholic.kayakityak.com.

and i do not have to register “aquaholic” as a domain name?

hmmm, if that is correct, it almost seems too easy. but, i’ll take it! :smiley:

thanks in advance for your help.

michelle


#6

Yup, under the assumption that kayakityak.com is your domain. :slight_smile:

I figure this is a typo and you meant to type /…/…/aquaholic.kayakityak.com/

Depending on your web hosting settings, you’ll serve www.aquaholic.kayakityak.com and/or aquaholic.kayakityak.com.

Free unique IP and $67 off with promo code [color=#CC0000]LMIP67[/color] or use [color=#CC0000]LM97[/color] for $97 off. Click for more promo code discounts


#7

thanks, that is super cool.

lol, yes, kayakityak.com is my domain, and that would be a relevant detail.

and no, it was not a typo. when i went through the steps of adding the subdomain i typed in aquaholic.kayakityak … without adding .com. so the default web directory was /…/…/aquaholic.kayakityak.

i just did another dummy (no pun intended) run using aquaholic.kayakityak.com as the sub.domain to host, i see that the default directory becomes .com as well. duh! good thing i asked. :slight_smile:

thanks again for your help.