How to configure PrestaShop to work with another domain

PrestaShop, like many other applications out there is domain name dependent. In case you wish to use your PrestaShop with a different domain name you should follow the instructions below:

  • For PrestaShop 1.4.x or the older versions:

Access phpMyAdmin in cPanel and navigate to your PrestaShop database. Select the configuration table (e.g. ps_configuration) and find the PS_SHOP_DOMAIN and PS_SHOP_DOMAIN_SSL records. Change their values to match your new domain name.

You should also make sure that your PrestaShop's base directory is correctly set in the application's configuration file located under /config/ You can edit the configuration file via FTP, or File Manager in cPanel.

Once you have opened the file for editing look for the line:

define('__PS_BASE_URI__', '/');

In case your PrestaShop installation is located in the web root folder of your domain name, this line should remain as above. If the installation is located into a sub folder, the line should be changed to reflect its location:

define('__PS_BASE_URI__', '/subfolder/');

Where subfolder is the actual name of the folder where PrestaShop is installed.

  • For PrestaShop 1.5.x:

The only thing that you need to do is to change the shop URL from the database of your application. In order to do that you will need to:

Log into cPanel and access phpMyAdmin. Locate the table shop_url and change the values for the records: domain and domain_ssl to your new domain name.

Then change the value of the record physical_url in the same table. If you have installed the PrestaShop directly in the domain's document root, you will need to change the physical_url to " / ". If Prestashop is installed in a sub folder, the value of physical_url should be the sub folder's name.


For PrestaShop installed in the records should be:

domain =
domain_ssl =
physical_url = /subfolder/

  • For PrestaShop 1.6.x/1.7.x:

Log into cPanel and go to phpMyAdmin. Navigate to your PrestaShop database and open the configuration table (e.g. ps_configuration). Find the PS_SHOP_DOMAIN and PS_SHOP_DOMAIN_SSL records and change their values to match your new domain name.

Remove all the files inside the folders cache/smarty/compile/ and cache/smarty/cache/, except the index.php files situated there. You can do that easily via FTP.

Log into your PrestaShop admin panel on new domain and verify if everything is working properly - browse through all pages, products, images and themes, etc.

In case you need to modify the MySQL database details of your PrestaShop you can do that in the following database configuration files located in the root folder of your PrestaShop installation:

PrestaShop 1.4.x/1.5.x/1.6.x - config/

PrestaShop 1.7.x - app/config/parameters.php

You find this article useful? Click here to learn more about SiteGround web hosting experts and what else we can do for you!