Transferring WordPress is a very easy with WordPress plugin, but what happens when we get any error while transferring WordPress using these plugin. Because we are Web Developers so we must have the knowledge of how to manually transfer WordPress .

Transfer WordPress for any of reason like:

To new Domain.
To new Hosting.
Sub Domain to Root.
Root to Sub Domain.

Here are some notes for how to transfer your WordPress manually:

Step – 1

First, We download all files of WordPress From your old server. These files contains WordPress php files, your theme, plugins, media images and many more. We must download all files so that our site correctly transfer successfully.

Step – 2

After Downloading files we need to export database from phpMyAdmin Server. It contains all your WordPress website pages, posts and many more.

Step – 3

After exporting database we need to create database, database user and password on your new server where you want transfer your WordPress, and please copy these details in notepad.

Step – 4

After creating database we need to import our old database to this new server. after import database we need to below steps:
4.1) We need to go wp-options table
4.2) Here we need to change in “siteurl” and “home”  row and replace old URL with your new site URL.

Step – 5

After this, we need to upload all files you downloaded from old server to new server and edit “wp-config.php” file and change the values of below data:

— “We need to add new database name you copied when create new database”

define('DB_NAME', 'database name')

— “ We need to add new database user name you copied when create new database”

define('DB_USER', 'database user name');

— “ We need to add new database user password you copied when create new database”

define('DB_PASSWORD', 'database user password');

— “We need to add your server user if not get any server url just add (localhost)”

-- define('DB_HOST', 'server url');

Step – 6

After these changes we need to login to your new site in browser with URL like, (http://yourdomain.com/wp-login.php)

Step – 7

After login we need to go to Settings > Permalinks and choose your permalink option and click save.

Step – 8

After saving Permalinks Settings we need to install a plugin named:

  1. Use the Velvet Blues Update URLs plugin if you can access your WP Admin Dashboard.
  2. Use the Better Search Replace plugin if you can access your WP Admin Dashboard.
  3. Use WP-CLI’s search-replace if your hosting provider (or you) have installed WP-CLI.

I used “Velvet Blues Update URLs” plugin. you can use any of these above plugin they all work same.

Step – 9

After installing plugin.

Go to Tools > Update URLs

9.1)  Enter Old URL and new URL.
9.2)  Check all the option below and Save settings.

Move WordPress with Plugin

For moving WordPress there are many plugins available, but there are few plugins which are very easy to use and very useful:

  1. Duplicator
  2. All-in-One WP Migration
  3. WordPress Move
  4. BackupBuddy
  5. UpdraftPlus

I am going to show you how to move WordPress in easy steps using Duplicator plugin, please follow the below steps for transferring WordPress from one place to another.

Duplicator (link)

Step 1

We need to install this plugin from your WordPress dashboard. Go to plugins > add new here you can search for Duplicator or upload plugin. You can download from here.

Step 2

After installing plugin we need go to Duplicator > Packages

Step 3

We need to click on Create New button on top right corner.

Step 4

Now please check all details are right then click next. Mostly all details are correct.

Step 5

Check all the details are good and if you see any notice please review notice and click Build. After building package successfully you need to download both files:

  1. Installer.php
  2. Archive file

Step 6

After Downloading files you need to upload these files where you want to transfer you WordPress like:

  • On localhost – http://localhost/wordpress

Here wordpress is a folder inside the htdocs folder, copy files inside wordpress folder.

  • On Server – https://yourdomain.com/

Here your WordPress is installing in root folder on server, copy files inside root folder.

  • On Server sub domain  – https://yourdomain.com/blog

Here blog is a folder inside your root folder on server, copy files inside blog folder.

Step 7

Create database on your localhost (phpmyadmin) or on server where you extract your folder.

On localhost there is default user is root and password is blank.

On Server you need to create a User. View all instruction for creating database on cpanel.

After creating database and user, copy all details on notepad like database name, user name, user password and server URL.

Step 8

Open domain on browser where you added files domain example:

  • http://yourdomain.com/installer.php/

Step 9

After open this domain follows instruction on browser:

Step 10

Enter all your database information you copied earlier and click test database:

Step 11

Check all details if they seems good click next:

Step 12

Now Your WordPress is transferred successfully make sure to delete installation files after login if already not deleted:

Duplicator final step