Move WordPress website to new domain

Being a freelancer on freelancer.com I get many projects related to moving/copying of WordPress websites to new domains. 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:

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.

If you have any difficulties with moving WordPress website from one place to another, you can always hire me via freelancer.com or directly (drop message below). 🙂

Comments are closed.

Login Contact Me Any Widgets Social Subscribe
×
 
Thank you for subscription!
×
 
Thank you! Your message has been submitted to us.
×

Calendar

January 2019
M T W T F S S
« Nov    
 123456
78910111213
14151617181920
21222324252627
28293031  
×
×
×