There comes a time in the life of a website when it must be moved from one server to another. This transition can be from a development/testing server to a production server or from on hosting-provider’s servers to a different hosting-provider’s server. Whatever the case might be and whatever the reason behind moving your website is, the need to move a website from one server to another is inevitable. Magento websites are no exception.
Here we present to you a list of steps you’d need to follow to get your website working after you have moved it to a different server.
Upload your website to the new server and copy the database with its contents intact.
Changing the Database Information
Open magento/app/etc/local.xml and edit the lines that read:
Save this file and upload it at the appropriate location on the new server.
Now open magento/app/etc/config.xml and modify the lines that read:
Clear The Cache And Session Folders
Delete all the contents of the var/cache and var/session folders.
A Couple of SQL Queries to Finish It off
And now, you can visit your new store and revel in its brilliance.