Sign up ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I have 2 domains that are registered at GoDaddy : (not hosted, only domain name is registered to GD) (hosted at a different webhost, domain name registered to GD) is an already working site, with a different webhost, but the domain name is registered to GoDaddy (and I assume the nameservers are changed to redirect to the webhost).

Now, I don't understand why this was done, but is considered a subdomain on the host... meaning the files are in a seperate folder on the server.
Ex : public-html/

The structure is similar to this on the webhost:

HostNAME (main root folder) (subdomain of hostname) (etc...) (etc...)

I want to transfer the site to, meaning will become the new website, without having to re-upload all the content and CMS. The old one will redirect to once the transfer is done (using 301 redirects).

Can anyone tell me how I can do this?

share|improve this question

2 Answers 2

If you are using Cpanel, just use the option Modify and Account and your old domain will be changed into the new one.Thus, the old domain will be deleted from the server and the file will remain.

You will only have to check the db connection after this and check the paths for your scripts ( as they may change as a result of the domain changing).

share|improve this answer

Assuming you have access to the web server configuration, e.g. httpd.conf, you can just edit the existing VirtualHost or create a new one using the directory as its root. So if the absolute path to the files for is /var/www/public-html/, and you want to host it as

DocumentRoot /var/www/public-html/
ErrorLog logs/
TransferLog logs/
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.