Site.eu

Website migration: How to migrate a website?

5 min read

Website migration: How to migrate a website?

Moving your website to another host? That's a website migration. You copy your website to the new server, test it, and then point your domain name to it. Sounds like a big job. But do it in the right order, and your website and email stay online the whole time.

Here's what a move involves. And the order that works.

Two ways to move to Site.eu

Email comes with every plan. So your mailboxes can move along too.

The right order: domain name last

Your domain name works like a signpost. It tells browsers where your website lives, and mail servers where to deliver your email. Point it to us before your website and mailboxes are ready? Then visitors find an empty website. And your email can't be delivered.

So move your website and email first. Switch your domain name last. We do it in the same order when we move a website for you.

  1. Back up your website: files and database.
  2. Order a plan and turn on web hosting. Leave your domain name where it is.
  3. Add your domain name to your dashboard, link it to your plan and create your email addresses.
  4. Copy your website. See below.
  5. Test it before anyone else sees it: on your temporary address, or with your hosts file.
  6. Copy your email with our email sync.
  7. Lower the TTL of your DNS records a day before you switch, for example to 300 seconds. Then the switch reaches everyone sooner.
  8. Switch your DNS to us. Your website and email move at the same moment.
  9. Check everything with our DNS check and the list at the end of this guide. Keep your old hosting for a few more days.
  10. Transfer your domain name to us, if you like. That's a separate step. Read how to transfer a domain name without downtime.

Make a backup first

Before you start, back up your whole website: all files and the database. Keep the copy on your own computer. Why?

  • Something can go wrong during the move. With a backup, you can always go back.
  • You can look up how your old website was built, like its pages and URLs.

Do this for every move. Big website or small.

Copy your files

Download every file of your website from your old host: pages, CSS, scripts, images and videos. Use an FTP program or the file manager of your old host.

Then upload them to your web hosting with us. It runs on DirectAdmin. Every domain name has its own folder there: domains/yourdomain.com/public_html. Put your files straight into it, so your index.html or index.php sits in public_html itself.

Copy your database

Most websites keep their content in a MySQL database. WordPress does too. Move it in four steps.

Step 1: In DirectAdmin, create a new database under MySQL Management. Write down the database name, the user and the password. DirectAdmin puts your username in front of them, like username_shop.

Step 2: Log in to phpMyAdmin at your old host and click your database on the left. Open the Export tab and export all tables. Choose gzip if you can: the file gets smaller. It downloads to your computer.

Step 3: Open phpMyAdmin from DirectAdmin and click your new database. Open the Import tab, choose your export file and start the import. Now you see your tables in phpMyAdmin.

Step 4: Put the new database details in your website's configuration file. For WordPress, that's wp-config.php. Skip this, and your website can't reach its database.

WordPress? Use Duplicator

For WordPress, the free Duplicator plugin does most of the work. It copies your files and database in one go.

  1. Install Duplicator on your old website and create a backup. You get two files: an archive and installer.php.
  2. Create an empty database with us, as in step 1 above.
  3. Upload both files to the public_html folder of your domain name with us, for example with FTP.
  4. Open yourdomain.com/installer.php in your browser and follow the steps. Fill in the details of your new database. Duplicator does the rest.

Good to know: until you switch, your domain name still leads to your old host. So before step 4, point it to our server on your own computer only, with your hosts file. The do-it-yourself guide above shows how.

Check everything after the move

Go through this list once your website runs on our server:

  • Files and tables. Are all files there? Do you see every table in phpMyAdmin? Something missing? Upload it, or export it again from your old host.
  • Every page. Does it open, with and without www? Does the content look right?
  • Links. Do all internal links work? Broken links hurt your ranking in search engines.
  • Logins and forms. Can you still log in to the admin and other secure areas? Do your contact forms still work?
  • Test your email. Send a message to your own address, and reply to it.
  • Speed. Is a page slower than before? Let us know.
  • New domain name too? Then update it in Google Search Console and Google Analytics.

Need help? Contact us by WhatsApp, Telegram or email.

Couldn’t find what you were looking for?

You can always chat with one of our experts for any questions you might have!

New articles added