How to Transfer Wordpress Site to Another Host is clearly explained and a backup of website and database is necessary to move website to another web server.
![]() |
Move Website to Another Web Server |
- Free
- Easily Customizable
- Open Source
- Safe and Secure
- Easy to Use
How to Move website to another Host / Web Server
Backup your Wordpress Files on the old host
It is very necessary to backup the wordpress files. Go the public_html and double click, it will show all the files and folders, it the website is in some sub domain the double click that particular folder, once you come to the proper folder where the website files are present then select all and click compress, a small pop up window will appear, here you select "gzip archive" and click compress files, the files will be compressed and the zip file will visible in the same directory. Then download this zip file, and keep it aside.Backup your Wordpress database
Most of the website content is in the database and this has to be handled carefully, if this database get deleted the website will have problems. For Database Backup go to the cpanel and select php myAdmin and select the database which has website data and then click Export then select on backup with the sql format and go on custom and select "compress" and then click go the database backup will be downloaded on the computer.To do Backup from a shell use the following steps
mysqldump -uadmin -p`cat /etc/psa/.psa.shadow` database > database.sql //for plesk
mysqldump database_name > database.sql //for cpanel
The data content and database backup have been completed.
Prepare to Transfer wordpress Site to Another Host
Now login to the new host / server and enter the public_html folder and the proper folder where this website has to be moved. Now upload the downloaded zip file from the old server to this and then extract it and all the files will be seen on this folder.Transfer the Wordress Database file to the New Host
Go to php MyAdmin and create the database file, by going to database new and putting the database name. Also create the database users and give them the proper privliges. Now you can import the database file by click the Import and putting the database file which was imported. To do restore from a shell use the following stepsmysql -uadmin -p`cat /etc/psa/.psa.shadow` database_name < database.sql //Plesk
mysql database < database.sql //cPanel
We have migrated all the data content and databases to a new server.
Final Step to make this migration complete.
Editing the wp-config fileIf the database name and user is different then there is need to edit the wp-config file like
define (‘DB_NAME’, ‘database_name’);
define (‘DB_USER’, ‘database_user’);
define (‘DB_PASSWORD’, ‘database_password’);
Finally Check the .htaccess file
This is the basic default .htaccess file (change only it neccesary)
# BEGIN WordPress IfModule mod_rewrite.c
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
IfModule
# END WordPress
Post A Comment:
0 comments so far,add yours