This was my first attempt to migrate Prestashop to another domain, and was easier than expected (and I was very afraid, I confess). This is the list of what I’ve done:
- First thing. Disabled the store, putting it in “Maintenance Mode”
- Next, I’ve made a full backup of all files and the database, and downloaded them to my local computer.
- At my new domain account I’ve created the new database, a new user and password for it (keep for later use) and dumped all tables from my backup to it.
- At the new database, you have to search in this tables, the URLs of the olddomain.com and change to newdomain.com:
- ps_configuration
- ps_shop_url
- With this done, you can now upload all the files from your backup to your new domain account (probably in the folder “public_html/” or similar)
- When all files files uploaded, you will have to change two more files, from your public root folder:
- edit /app/config/parameters.php – here you have to add the information of your new database, user and password
- at the root folder, edit your .htaccess and change all olddomain.com to newdomain.com
- And that’s it.
It was almost perfect for me. At the Modules menu I was having some errors that I was unable to figure out, but, my version was 1.7.7.0, and I’ve done the 1-Click Upgrade to 1.7.7.4 and those problems got away.