Skip to content

How to move your WordPress website

This guide will explain how to move your WordPress website. For customers using LCN.com web hosting or WordPress hosting.

If you’re looking to move your WordPress website from another web hosting provider to LCN.com. You’ll need to get a copy of your web and database files from your current hosting provider.

Let’s get started…

Moving WordPress to LCN.com web hosting

  1. Add your domain to your LCN.com web hosting.
  2. Create a new MYSQL database in your LCN.com account. If you’re unsure how to do this, we’ve got a handy guide here
  3. Once this is setup you’ll need to import the copy of your WordPress database via PHPMyAdmin. You can reach the login by going to http://yourdomain.co.uk/mysqladmin. Replace yourdomain.co.uk with your domain. Or go directly to https://www.mydbadmin.co.uk/index.php

  1. Now your database is ready to go, you’ll need to upload your WordPress files to the web folder on your LCN.com web hosting. This will need to be done using an FTP client such as “Filezilla”.

  1. Once the upload is complete, you’ll need to edit the following sections of your WordPress wp-config.php file to link your WordPress files the database you set up earlier.
    • define(‘DB_NAME’, ‘enter database name’);
    • define(‘DB_USER’, ‘enter database username’);
    • define(‘DB_PASSWORD’, ‘enter database password’);
    • define(‘DB_HOST’, ‘enter database hostname ‘);

  1. Finally, you’ll need to update your domain’s DNS settings to point to your LCN.com web hosting. If your domain name is with LCN.com you can learn how to do this here.

Moving WordPress to a new domain or sub-domain

WordPress can be moved to a new domain or sub-domain by following the steps above. However, after the move is completed some of the internal links in your website may not work correctly.

You can fix this by installing a plugin such as Velvet Blues Update URLs or Better Search Replace which will update all the URLs within WordPress to reflect the change in domain.

Moving WordPress to a new directory or folder

Moving your WordPress website to a new directory (folder) on your existing hosting package is also a simple process, although you will still need to fix your links afterwards using Velvet Blues Update URLs or Better Search Replace.

To change the directory, follow these steps:

  1. Log into your WordPress administrator dashboard and navigate to Settings > General.
  2. Enter the URL for the new location of your WordPress files in the WordPress Address (URL) field.
  3. Enter the URL for your website in the Site Address (URL) field before clicking Save Changes.
  4. Move your WordPress files to the new location using your preferred FTP client.

That’s it! You have now moved your WordPress website.

Was this article helpful?

Check out some of our related guides

Need a hand? Search over a hundred step-by-step support guides