Sub-domain to domain


#1

Hi there,

New to this forum and it seems like a great community of people willing to help- great to be a part of it.

So, here is my problem:

I recently registered a sub-domain name.domainname1.com to start developing a new website I had in mind. As the designing is coming to a close I’d like to transfer the sub-domain to work with another domain name (domainname2.com) I recently registered so that viewers don’t have to go to the sub-domain to view the site.

So, in essence this is what needs to happen:

sub-domain.domainname1.com needs to become the newly registered domainname2.com.

All domains are registered with Dreamhost so there does not need to be a transfer of any sort (I believe).

Many thanks for all your help.

Best,
Bash


#2

Are those two domains hosted under the same user? If so, you can simply “mv /home/username/sub-domain.domainname1.com /home/username/domainname2.com”

If you have configurations pointing to /home/username/sub-domain.domainname1.com, you will need to manually update them.


#3

I don’t understand what you mean by that, but YES both subdomain and domain are on the same dreamhost account.

Can you clear up what you said?

Thanks


#4

it sounds like you may be accessing via FTP only.

The instructions he gave you are for a shell session via a telnet client, if the user is set up for shell access you could do it that way.

With FTP you may be able to move a sub-directory from one domain to the other, or you may have to download and re-upload to the other folder.


#5

Why are you guys making this so hard for the noobs? Just set up domainname2.com to be a fully hosted domain. Then ftp into your account and rename the folder domainname2.com to somethingelse and then rename sub-domain.domainname1.com to domainname2.com. Be sure to update any configuration files or paths on your website to reference domainname2.com instead of the sub-domain and you would be all set.