Configure PrestaShop according to the version
If you want to use a different domain with PrestaShop, you must follow these steps:
Applies to PrestaShop 1.4.x or earlier versions.
Enter phpMyAdmin within cPanel and go to the PrestaShop database. Look for the PS_SHOP_DOMAIN and PS_SHOP_DOMAIN_SSL records in the configuration table.
Enter new values to match the new domain.
You must ensure that the PrestaShop base directory located under /config/settings.inc.php is correctly configured. You can edit the file with FTP or cPanel File Manager.
When you have opened the editing file, look for the line:
define('__PS_BASE_URI__', '/');
If your PrestaShop is in the root folder of your domain, this line should remain as above. The line must be changed to show its location if the installation is located in a folder.
define('__PS_BASE_URI__', '/folder/');
Where the word "folder" appears, you must put the name of the one where you have the PrestaShop script installed.
For PrestaShop 1.5.x
From the application database, you are only going to change the store URL. You will need:
Enter phpMyAdmin from cPanel. Look for the shop_url table and modify domain and domain_ssl to your new domain.
In the same table, change physical_url. If the PrestaShop store is installed in the root folder of the domain, you will change physical_url to "/". If PrestaShop is located in a different folder, physical_url is changed to the name of that folder.
Example:
For a PrestaShop installed in http://yourdomain.com/directory the records will be:
domain = yourdomain.com
domain_ssl = yourdomain.com
physical_url = /directory/
For PrestaShop 1.6.x/1.7.x:
Enter phpMyAdmin within cPanel and go to the PrestaShop database. Look for the PS_SHOP_DOMAIN and PS_SHOP_DOMAIN_SSL records in the configuration table.
Enter new values to match the new domain.
Now delete all files within the directories cache/smarty/compile/ and cache/smarty/cache/, except the file index.php. If you use FTP, you can easily do that.
Enter the PrestaShop administrative panel with the new domain and make sure everything is working correctly.
If you want to change details to the MySQL database of your PrestaShop, you can do it in the configuration file located in the root directory:
PrestaShop 1.4.x/1.5.x/1.6.x - config/settings.inc.php
PrestaShop 1.7.x - app/config/parameters.php