Follow the following steps to move your wordpress installation to a new server with the same domain name or a different domain name.
1. Moving wordpress site to a new server with a new domain name
step 1 – take the sql dump of the original site rename the db to dbold.sql
step 2 – make a copy of the sql dump taken ,name it dbnew.sql
step 3 – Go to wordpress Admin and check the setting of the Site address (URL) under Settings->General say it is https://techarticleshub.in.Search and replace the old Site address in dbnew.sql by http://newdomain.com. Save the file.
step 4 – Again go to wordpress Admin,If in Settings->General the WordPress address (URL) is different from the Site address (URL),then search and replace that also in dbnew.sql with http://newdomain.com. The database is now ready for the new site.
step 5 – Take a complete backup (download) the wordpress site by ftp.This takes time but is the best way to ensure that everything works exactly as before.
step 6 – upload the wordpress site to the new domain.
step 7 – create a new mysql database in cpanel,create a database user,assign the user to the database with all previleges.Keep note of the database name,database user and the user password.
step 8 – Now import the dbnew.sql from phpmyadmin in cpanel to the database you just created.
step 9 – Open wp-config.php at the wordpress site.Fill in the database name,database user and password of the database youu created in step 7.
That is all , Your site will work at the new domain exactly as at the old domain.If you are using the old domain url in the widgets or in the theme files then you will need to change those.
2. Moving wordpress site to a new server with the same domain name
step 1 – take the sql dump of the original site rename the db to dbold.sql
step 2 – make a copy of the sql dump taken ,name it dbnew.sql
step 3 – Take a complete backup (download) the wordpress site by ftp.This takes time but is the best way to ensure that everything works exactly as before.
step 4 – upload the wordpress site to the new domain.
step 5 – create a new mysql database in cpanel,create a database user,assign the user to the database with all previleges.Keep note of the database name,database user and the user password.
step 6 – Now import the dbnew.sql from phpmyadmin in cpanel to the database you just created.
step 7 – Open wp-config.php at the wordpress site.Fill in the database name,database user and password of the database you created in step 5.
That is all , Your site will work at the new server exactly as at the old server.
That is all.
If you liked this article please do leave a reply and share it with friends.
Thanks.