Moving website from one subdomain to another

Asked by:
HubFans / n/a Points
Time:
2014-01-18 4:47 am EST
Category:
How To
Hits:
5,095
How do I move a website from one subdomain to another?

To ask this user for more information, please first login.

To submit an answer, please login.

ANSWERS

0

arnelc
Staff
17,314 Points
2014-01-18 7:26 am EST
Hello,

Thanks for the question. What you're asking is a bit general, because it will depend on the type of website that you have built, or more importantly, what software you have used. Typically, the URL for a Web Hosting Hub website is based on the URL that you determined when you purchased the account - also called the primary domain. For example: domain-name.com.

However, your question is about moving from a sub-domain like http://domain-name.com/subdomain to another. The files and folders that are saved to the web server are what determine the location of the subdomain. The primary domain files are normally located in the public_html folder. So, if you have a subdomain named "subdomain", then there's typically a folder there by that name. Together, these folders form an organized structure that is used to determine the location of your files. When you refer to the location for the files, it's often called a path. So, by our example, the path would look like this:

/public_html/subdomain

In order to move a website from a subdomain into another, you would typically simply copy the files into a different folder. So, if I wanted to move the files in "subdomain" to "subdomain2", I would use something like the cPanel file manager to move the files into a new folder called "subdomain2".

This again depends on the software you're using. And also, you need to consider that ANY link that you have created using the previous URL would need to be changed in the code of your website.

If you're using a software like WordPress, then you have several other factors to consider. We have documentation that can help with this kind of move: Moving WordPress. Depending on the software that you used, you may need to look to see what needs to be changed in order to change the subdomain where you have currently setup your website.

I hope this helps to explain the issue! Please let us know if you require any further assistance.

Regards,
Arnel C.

To submit a comment on this answer, please first login.

Want to share this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Need More Help?

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 757-416-6627 Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.
}