In this KB, we've step by step guidance to move WordPress website through FTP method.
Backing up WordPress website
To be on safe side, take full backup of your WordPress website before you make any changes. Now, copy all your WordPress files including .htaccess to your local computer either through FTP or through cPanel.
Creating WordPress database at new host
Editing wp-config.php for newly created database
Now, browse the folder where you downloaded your WordPress website files and locate the file called wp-config.php. Before you edit the wp-config.php, keep a copy of it as safeguard. Replace the database login details (you just created in above step) in file wp-config.php. Now, update the following lines with database, username and password.
define(‘DB_NAME’,’db_name’);
define(‘DB_USER’,’db_user’);
define(‘DB_PASSWORD’,’db_password’);
Importing WordPress Database
Uploading WordPress file to new host
Now using FTP, copy your WordPress website files at new WebHost in root directory(public_html).
Editing database (Edit Site URL)
After migration, to make images and posts linking work appropriately, you’ll need to update your domain name database. Just opening WordPress database and updating it won't work as it may break any serialized data. Hence, you will need a script that will preserve serialized PHP strings when performing a search and replace. You just need to upload this script to your website, scan all the tables and then input what you want to find (your old domain name) and replace (your new domain name).
Configure DNS Setting
Once everything is set, change the namservers(or A records) of your WordPress website to point it to new web host. After almost 48 hours of propagation time, your WordPress site will be up and running.