Migrating Web Sites from www.dartmouth.edu to host.dartmouth.edu

Before migrating your site you must:

  1. Request an account on host.dartmouth.edu, using the instructions at https://host.dartmouth.edu/support/. When you get the email that your account has been created, it will contain your SFTP credentials. These should be retained for future use.
  2. Obtain an archive of the files in your www.dartmouth.edu account.This can be done via your account migration service request. If you have not already opened an account migration service request, please do so by going to the WWW Migrating Accounts Service Page

 
Once your host.dartmouth.edu account is created and you have your file archive, you can upload your files to your new account. Generally speaking, you will want to put all of the files and directories that were in the public_html directory on the old account into the same place in your new account. There are multiple ways to upload your files to your new site:


Using the cPanel File Manager:

  1. Log in to the hosting dashboard at https://host.dartmouth.edu/.
  2. On the dashboard, go to File Manager in the Files area.
  3. Use the Upload button to place the files in the appropriate directories

Using a File Transfer Program like CyberDuck, Filezilla, Fetch, etc.:

  1. Start your file transfer program on your local machine
  2. Open an SFTP connection to your site using the credentials you received in your welcome email.
  3. Drag and drop files from your archive to the appropriate locations in your account

Using the command line: 

  1. If you are familiar with the scp or sftp commands in the terminal of your local machine you can use them to transfer the files to your new site.
    Ex: scp myfile.html me@mysite.host.dartmouth.edu:public_html/myfile.html

 
There are a couple of approaches to uploading files:

  • Unpack the archive on your local machine and move the files from there to your new site. This method is more suited for when you are only moving a subset of files to your new site.
  • Transfer the entire archive to your home directory on host.dartmouth.edu. Once it is there, you can unpack it and use the File Manager to move your files to their correct locations in the public_html directory.

 
Once you have moved your files into the public_html directory, your site should now be available at https://your_selected_name.host.dartmouth.edu. However, there are a couple of additional steps that may be necessary:

  • If you uploaded your entire archive to the server, you should delete it and the directory that was created when it was unpacked to conserve disk space and ensure that you do not exceed your space quota.
  • The web server expects a standard index page (e.g., index.html, index.php, etc.). If your site uses something different (e.g., welcome.html) you will need to edit your .htaccess file to point to it. This can be done from within the File Manager. This article provides more detail if you need it: https://hostadvice.com/how-to/how-to-change-default-index-page-in-htaccess-from-cpanel/
  • If you have an index page in as mentioned above but are still seeing the default welcome page, you will need to edit .htaccess file to remove the line DirectoryIndex default.html. Refer to the article referenced in the previous paragraph for more information.

Details

Article ID: 122806
Created
Wed 12/16/20 3:43 PM
Modified
Tue 3/2/21 11:40 AM