Search the articles in our knowledge base!

How to configure Prestashop to work with another domain

Prestashop, like many other applications out there, works based on a domain name. In case you wish to use your Prestashop application with a different domain you should change the PS_SHOP_DOMAIN and PS_SHOP_DOMAIN_SSL options in your Prestashop's database. To edit these options you can use the phpMyAdmin tool available in cPanel.

Log into cPanel and access phpMyAdmin, after which select your Prestashop database and browse the table ps_configuration where the PS_SHOP_DOMAIN and PS_SHOP_DOMAIN_SSL records are located. Change their value 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 – settings.inc.php. You can find the configuration file in the config folder, located in the root of your Prestashop installation. You can edit the configuration file via FTP or by using cPanel's File Manager tool.

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 has been installed.

You need help with a shopping cart? SiteGround is specialized in eCommerce hosting and provides expert support for a large number of shopping carts. Check out our shopping cart hosting services!
VN:F [1.9.22_1171]
Rating: 2.9/5 (7 votes cast)
How to configure Prestashop to work with another domain, Rating 2.9 out of 5 based on 7 votes