How to Transfer a Website to a New Domain | Website Hosting Plans

Everyone hates moving. Whether you’re moving across town or across the country, the act of packing up your belongings, and making sure everything ends up in your new home, is taxing. The same is true for transferring your website from one web hosting service to another.

Unlike moving in the real world, you may have no clue how to move blog posts, images, video, and other content to the new domain. Don’t fret; we’ll walk you through the necessary steps to make the process as simple as possible. 

Backup Wizard in Cpanel

1. Backup Your Website

We assume that you’ve already found a new web host and domain name for your site. Now, you must pack everything for the move. In this case, that means backing up your website. There are three main ways to do this.

The WordPress Method

If you’re working with a WordPress-powered website, you’ll need a WordPress plug-in to wrap up everything. Duplicator, UpdraftPlus, and All-in-One WP Migration are just three of the many options. These easy-to-use plug-ins let you backup your WordPress site with just a few clicks. Using Duplicator, for example, you should:

  1. Click “Packages” and then “Create New.” This creates a package that contains all your site and WordPress elements, plus an installer.

  2. Download the site archive package.

  3. Use the installer to open the archive package in your new hosting environment.

Top Rated Web Hosting Services, Tested

The cPanel Method

The next level up is using a website’s control panel. Many popular web hosts use cPanel, for example, to manage files. Here’s how to do it:

  1. Within cPanel, navigate to the “Files” section and click “Backup Wizard.”

  2. Make partial backups of your home directory, MySQL databases, and email forwarders. In an odd wrinkle, you don’t want to create a full backup, because you can’t actually restore from it.

  3. Navigate to the new web host’s cPanel. Restore each backup file, one at a time.

The FTP Method

If you’re familiar with working in a site’s backend, you could backup your site files via File Transfer Protocol (FTP) and phpMyAdmin. You can perform a FTP backup with any FTP client—we recommend FileZilla. In addition, you’ll need to have the old site’s sign-in credentials. Here’s how to do it:

  1. Sign in with the FTP client—or use the File Manager built-in to many control panels—and download the contents of the “Public_HTML” folder. 

  2. Then you’ll want to find phpMyAdmin; it’s usually in your control panel’s “Databases” section. Click the “Export” tab, “Quick” as the Export method, and “SQL” as the format. 

  3. Click “Go.” Doing so creates a database file that automatically downloads to your PC. 

  4. Reverse both processes on your new domain.

Using Filezilla to move files

2. Check Your DNS Settings

Did you acquire a new domain name from an independent domain registrar? Did the new domain come as part of a web hosting package? Regardless, make sure that your domain name system (DNS) settings are correct. 

A DNS record ties your domain name to your website and server. These DNS records are usually in the form of an IP address, a subset of four numbers (104.17.210.9, for example). There are also general nameservers that come in URL form. You’ll get these from your web hosting provider. If your registrar and web host are the same, you can skip this step. If not, you must add that information to your domain name registrar. Here’s how to do it:

  1. Log onto your new domain server account and check the server details. This will be in a different spot on each hosting provider. This should include your DNS record and nameservers.

  2. Log onto your domain registrar and edit the DNS record and nameservers to match your new domain.

  3. Wait, as it can take 24-48 hours for the process to work.

3. Transfer Files to a New Domain

This step is essentially the reverse of the first step. You’ll need an archive of all the files from your original site’s directory, as well as the database, which tells your web server where all the content goes. It’s important to make sure both are in the right place.

First, you need to make sure there’s already a database created on the new site. (For WordPress sites, this will usually be wp-config.php.) Then, using phpMyAdmin, import the archive file’s content into the existing database. Select the “Import” options in phpMyAdmin, choose the file on your PC, and click “Go.” This should import all the database entries from your old site into the new one. Now, you can transfers your site files.

How to Transfer Files Using WordPress

  1. You’ll need to use the installer and archive package you downloaded in the first step. 

  2. Use an FTP client or the built-in File Manager to connect to your new web host

  3. Click the installer to begin the restoration process. 

UpdraftPlus and similar plug-ins may have a clone or migrate option that lets you restore everything from a file on your PC.

How to Transfer Files Using cPanel

  1. If you went the cPanel route, simply go to the Backup Wizard on your new domain and restore your site from the previously created files. This is the “no muss, no fuss” option.

How to Transfer Files Using FTP

  1. Use an FTP client or the site’s built-in File Manager to connect to your new web host. 

  2. Upload the files from your old site’s home directory archive to the new host’s home directory. 

  3. Upload your database file. The database file needs to be on the server for the next step, so upload it now.

4. Make Sure to Redirect Pages

If you want traffic heading to your old domain to make its way to your new one, you need to redirect the old site to the new site. Otherwise, people will see a 404 Page Not Found error when they try to reach your site at the old domain. Follow these steps to set up your redirects:

  1. Use FTP or the File Manager to connect to your old domain’s registrar or hosting account. 

  2. Edit the .htaccess file. This will be in your home directory, or in the same directory as your wp-admin folder for WordPress users. 

  3. Open the .htaccess file and add the following code:

#Options +FollowSymLinksRewriteEngine onRewriteRule ^(.*)$ http://www.newsite.com/$1 [R=301,L]

  1. Replace “newsite.com” with your new domain name.

Now, your old domain name should redirect to your new one. If it doesn’t, you should contact your old hosting service’s tech support team for assistance.

If you did everything right, the new site’s links should work. Some links may point to your old website that doesn’t exist anymore, so use w3C Link Checker, Dead Link Checker, or Dr. Link Check to discover those broken links. You’ must fix each dead link one by one, editing their locations by hand. It’s worth the effort, though.

6. Let Google Know About the Site Transfer

The last step is to let Google know about your new home! You can do this using some of Google’s own tools. 

Recommended by Our Editors

  1. If you’re using the Google Search Console with your old domain, click the gear icon, and then select “Change of Address.” 

  2. Input your new domain name here, and let Google handle the search traffic redirect.

You’ll also want to have an XML sitemap for your new domain. If you’re using WordPress, here’s how to make that happen.

  1. Install the Yoast SEO plugin. The plugin will automatically create an XML sitemap at: http://newsite.com/sitemap_index.xml. That’s it!

If you’re not using a WordPress-powered site, there are other options. 

  1. Visit XML-Sitemaps.com to generate one for your new website. 

  2. Download the file created, and then use an FTP client or File Manager to upload the file to your site’s home directory. The file should be “sitemap.xml,” meaning its URL will be: http://newsite.com/sitemap.xml

  3. Then under Google Search Consoles, your want to click on “Sitemaps” under the “Index” section. Then you can add whichever URL above and click “Submit.” 

Now, Google can crawl your website with ease.

7. Check Your Site

The last step is the easy one: Check your new domain! Take some time to click around your site to make sure all the posts, images, and videos are in their correct locations. Fix any missing items on your backend. 

If you have a fairly popular site, it might behoove you to let your community know about the domain change. You may have service interruptions as the migration process moves forward, and it’s good to let your visitors know why. Regardless, welcome to your new home on the web.

For more on web hosting, check out The Best Courses for Learning How to Build Websites. Once your site is live, use these 10 Easy But Powerful SEO Tips to boost traffic.

Tips & Tricks newsletter for expert advice to get the most out of your technology.”,”first_published_at”:”2021-09-30T21:23:24.000000Z”,”published_at”:”2021-09-30T21:23:24.000000Z”,”last_published_at”:”2021-09-30T21:23:13.000000Z”,”created_at”:null,”updated_at”:”2021-09-30T21:23:24.000000Z”})” x-show=”showEmailSignUp()” class=”rounded bg-gray-lightest text-center md:px-32 md:py-8 p-4 font-brand mt-8 container-xs”>

Like What You’re Reading?

Sign up for Tips & Tricks newsletter for expert advice to get the most out of your technology.

This newsletter may contain advertising, deals, or affiliate links. Subscribing to a newsletter indicates your consent to our Terms of Use and Privacy Policy. You may unsubscribe from the newsletters at any time.



How to Transfer a Website to a New Domain

Post a Comment

Previous Post Next Post