This tutorial is going to show you how to move Magento website from one domain to another domain.

For instance, our Magento site is currently working at and it needs to be moved to another domain at Here are the steps to follow:

Step 1 :

Log into the phpMyAdmin through the hosting Control Panel of your first site, open the current database and export it. Save it as a .zip/.sql file on your computer.

Step 2 :

Move all your site files to a separate folder on your computer. In this example we are going to backup the content of the /magento/ directory on our FTP. If your hosting Control Panel has a FileManager with the ability to archive the content, first archive it, then download and save it as a .zip file to your computer.

Step 3 :

Backup copy of your Magento site files and another .sql or .zip file of the database

Step 4 :

Open the database dump file you exported  in any text editor (e.g Notepad,dreamweaver etc..) and ( replace all )the old domain name with the new domain name everywhere it in. Like copy and replace all to Save the changes.

Step 5 :

Now upload/import this database to new database(Create Database, username and password same as old database).

Step 6 :

If you create new database, username and password then Go to the \app\etc\ directory on your new domain and open the local.html file to edit (you can just download the file on your computer and open in any simple text editor like Notepad and upload it back once the changes are saved).You need to change the old info in lines 43 – 46 of that file with the corresponding info for the new database.


Step 7 :

Save the changes to the file and open the url address of the new magento site, i.e. If you have done everything correctly, you should see the site looking the same as on your old domain i.e. 

Step 8 :

Delete everything from the \var\cache directory  (mage—1 , mage—2 etc folders).Give 755 permission to your magento root folder.

If any issue occur, Give folder permission as magento requirement.

Related Contents to follow