There are occasionally times when the primary domain that you have set is no longer required and you want to replace that domain with another website.  This involves the change of the primary domain name and the movement of the website files.   For further information on how to change the primary domain go to How do I change the primary domain on my account?   This tutorial shows you how to move your website files using the Cpanel File Manager.

 

Moving the Primary Domain Website Files with the Cpanel File Manager

  1. Login to the Cpanel.
  2. Scroll down the Cpanel interface until you get to the FILES section and then double-click on FILE MANAGER in order to continue.
  3. In order to perform the next actions you will need to be aware of a few things:

    Be aware of any Subdomains that you may have created (you can find the information on created subdomains by going to the Domains>Subdomains section of your Cpanel)
    Be aware of any Add-on domains that you may have created (you can find the information on add-on domains by going to the Domains>Add-on domains section of your Cpanel)
    Be aware of any files and folders that do NOT belong to the primary domain installation
    Be aware of the files and folders that make up your primary domain

    It is important that you you can define the files and folders that make up your subdomains and add-domains.  Otherwise, removing them will disrupt or destroy the website that each of them may contain.  Use the Cpanel information to help identify the files and folders involved.  The best way to handle these files without deleting them is to simply rename the container that holds the files.  In this case, the folder that holds the files is the public_html folder. 

    In the left-hand side of the File Manager, click on the HOME icon at the top of the tree-view of the files and folders in your installation.  This will cause the folders to be listed in the right-side window pane.

    File Manager main screen


  4. In the right-hand window pane of the File Manager, click on the public_html folder, then click on the RENAME option at the top of the File Manager screen. Rename the folder to "public-html-old".
  5. Click on the HOME icon at the top of the tree-view again, then click on the NEW FOLDER icon in the top left side of the File Manager.  Name the new folder "public_html".

    NOTE: Remember that all file names are case sensitive on the server. Keep all all letters of the folder name lower case.

  6. Move all of your new primary domain website files into the newly created public_html folder. For more information on how to move files with the File Manager go to Managing Files with the Cpanel File Manager.
  7. Move any files and folders for subdomains or add-on domains from the previous public_html (now named public-html-old) folder into the newly created public_html folder.

After you have moved your website files into the newly created public_html folder and the propagation period has ended for the change of the primary domain name, then the move for the website files has been completed. 

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Did you find this article helpful?

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

News / Announcements

Information for customers experiencing 500 errors
2014-07-28 08:56 am EST
Hits: 542

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
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.