How to Move files after a Primary Domain Change

After you have completed the request to have your primary domain changed to another domain name, you still have the task of removing the old primary domain files, transferring the new website files, or simply building a new website. The following instructions use the file manager within the cPanel to illustrate the location of the files. If you are going to be transferring files, it is highly recommended that you transfer the files using an FTP client.

Before beginning this process, it is highly recommended that you create a complete website backup if you have not already done so.

Before you move your files

Public_html folder

What is the PUBLIC_HTML folder?

By default, the primary domain or main domain of your account is located in the PUBLIC_HTML folder. If you have requested that the folder for the document root(folder where primary domain website files are located; also called the web root) be changed to something else, then you should be looking in that folder for your primary domain website files. The following instructions use the PUBLIC_HTML as the document root of the website.

Add-on Domains

ADD-ON Domains

If you have already added a website as your primary domain, then there will be website files in the public_html folder. CAUTION: If you have set up add-on domains, then the folders containing the website files for the add-on domains would be in the same location. Use the cPanel Add-on or subdomains options in order to locate the folders that you may want to keep.

Moving and Transferring files for you Primary Domain Change

To REMOVE or MOVE the old primary domain files:

  1. Login to the cPanel
  2. contents of Public_html folder

    Go to the File Manager and navigate to the root directory of the primary domain (by default, this is public_html)

  3. Select the files that you wish to move or delete, then move/delete the files. You are ready to move in the new files or create new ones by building a new website when all of the older files have been removed or transferred.

To TRANSFER THE WEBSITE FILES:

  1. Launch your FTP client and then login to your FTP account
  2. Using FTP to move files/folders

    Navigate to your root folder (default is public_html)

  3. Make sure that the old files and folders are removed as per the instructions for removing/moving files above
  4. Upload the new files and folders for your website

Building a new website

If you are building a new website, then first make sure that you have removed the old files, then go about the business of building your new website to that location. Just make sure that you are saving or publishing your files to the document root folder.

If you are using a blog, content management system, ecommerce software, or any other program that normally requires configuration during its installation phase, then please be aware that there may be other steps involved to make sure that your program will operate properly after a primary domain change. For example, you may need to edit your configuration files in order to account for the change in location. We cannot provide the specific steps as this need may vary from installation to installation depending on the software and the change that has been made.

This completes the tutorial for moving/removing your files for a primary domain change within InMotion Hosting. For more information see Changing the Main Domain.

AC
Arnel Custodio Content Writer I

More Articles by Arnel

8 thoughts on “How to Move files after a Primary Domain Change

  1. Hi,

    I am using a different hosting site but have access to a similar looking cpanel. I asked the hosting site to change my primary domain which they did and even though they asked me to move the folders from old to new primary domain public_html folder… the files already seem to be in the folder. Just checking that my website wont crash when my old primary domain expires if i leave it like this? 

    Carl

    1. Hi Carl,

      This would depend heavily on two things. First, which directory the main domain is actually configured to use. Second, you may need to configure the new domain in the Software you used to build the site.

      I hope this helps!
      Sincerely,
      Carlos D

  2. I am changing my domain name and rebranding but want to use my old website design and pages. How do I change my primary domain name? I made backups of my website already. I have not yet purchased my new domain name because I wanted a clear process first.

    1. Hello,
      We have a guide on how to change your primary domain at the link below. Once you change your primary domain you will need to adjust all the URLs in your site to match the new domain, the process on this will very depending on how your site is built.

      https://www.inmotionhosting.com/support/domain-names/general-information/how-do-i-change-the-main-domain-name-on-my-account

  3. I have 3 domains. kozykalpacas is primary at this time. can I make mountaingnome.com my primary and still leave all files, etc. the same?

Was this article helpful? Join the conversation!

Questions about our MailChannels Deployment? We have answers and are here to help!Learn More
+