How to move Magento website to another domain in the same server

There’s a few things you need to do once you have your staging domain name all set up.

1. Copy the database. Export it to a file, create a staging database, Open exported database file with any well know editor(like notepad++) and replace current domain “currentdomain.com” to new domain “newdomain.com” and import this dump file.
2. Copy the files to new domain folder. Make sure you clear the var/cache and var/session folders as they’ll have old data that we don’t need.
3. Update the app/etc/local.xml file with your new staging database information. This step is important!
5. Finally, load up the staging domain, and that should about do it!

If you need any help then contact us

Enjoy!!!!

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *