Move WordPress website to new domain

There are several ways how to do that, but today I would like to explain the easiest method.
Moving/copying procedure consists of three major steps:

Copy WordPress database.
Modify WordPress database to make website working under new domain.
Copy WordPress website files.

Below I describe each step in details.
Assume the following:

We move WordPress from www.old-domain.com to www.new-domain.com.
We have cPanel (hosting control panel) on both hosting accounts.

Copy WordPress database

1.1. Login to cPanel for www.old-domain.com website.
1.2. Click “phpMyAdmin” icon.
1.3. In left side column select WordPress database.
1.4. In main content area click “Export” tab.
1.5. Save your dabase as “.sql” file on your local computer.
1.6. Login to cPanel for www.new-domain.com website.
1.7. Click “MySQL databases”, create new database and user, then assign user to database.
1.8. Go back to cPanel for www.new-domain.com website.
1.9. Click “phpMyAdmin” icon.
1.10. In left side column select database, created on step 1.7.
1.11. In main content area click “Import” tab.
1.12. Upload “.sql” file saved on step 1.5.

Modify WordPress database

2.1. Login to cPanel for www.new-domain.com website.
2.2. Click “phpMyAdmin” icon.
2.3. In left side column select database, created on step 1.7.
2.4. In main content area click “SQL” tab.
2.5. Execute the following SQL-commands:

UPDATE wp_options SET option_value = REPLACE(option_value, 'http://www.old-domain.com', 'http://www.new-domain.com');
UPDATE wp_posts SET post_content = REPLACE(post_content, 'http://www.old-domain.com', 'http://www.new-domain.com');
UPDATE wp_posts SET guid = REPLACE(guid, 'http://www.old-domain.com', 'http://www.new-domain.com');
UPDATE wp_commentmeta SET meta_value = REPLACE(meta_value, 'http://www.old-domain.com', 'http://www.new-domain.com');
UPDATE wp_comments SET comment_author_url = REPLACE(comment_author_url, 'http://www.old-domain.com', 'http://www.new-domain.com');
UPDATE wp_postmeta SET meta_value = REPLACE(meta_value, 'http://www.old-domain.com', 'http://www.new-domain.com');

Copy WordPress website files

3.1. Login to cPanel for www.old-domain.com website.
3.2. Click “File Manager” icon.
3.3. Go to folder which contains www.old-domain.com files.
3.4. Select all files and folders by clicking “Select all”.
3.5. Compress selected files and download archive to your local computer.
3.6. Connect through FTP to server where www.new-domain.com is located.
3.7. Upload archive, downloaded on step 3.5, to folder associated with www.new-domain.com website.
3.8. Login to cPanel for www.new-domain.com website.
3.9. Click “File Manager” icon.
3.10. Go to folder associated with www.new-domain.com website and unpack archive, uploaded on step 3.7.
3.11. Open wp-config.php in editor. Replace database credentials by new ones created on step 1.7. Save wp-config.php.

That’s it. 🙂
If you are using Permalinks, go to the Administration > Settings > Permalinks panel and update your Permalink.