Manage cookies that are used for advertising, such as ad personalization, remarketing, and ad effectiveness analysis.
2.14.9.6. Change site address in PrestaShop
Attention!
Before performing any actions, it is strongly recommended that you create backups of your site and its database so that you can restore your site to its original state if something goes wrong.This article describes how to change the site address only within PrestaShop. If you need to rename the site on the hosting, use the instruction Change site name.
Database
- In the site configuration file, look for the name of the database to which it is connected.
- Open database in phpMyAdmin.
- Execute the following SQL query (use your own data):
UPDATE ps_configuration SET VALUE = REPLACE(VALUE, 'old-address.com', 'new-address.com') WHERE name = 'PS_SHOP_DOMAIN' OR name = 'PS_SHOP_DOMAIN_SSL';If the table names in the database do not start with the standard
ps_prefix, but with a different prefix, make the appropriate change in the SQL query. - Check the site's operation at the new address.
Site admin panel
- Open the site admin panel.
- Go to the "Store settings → Traffic and SEO" section.
- In the "Store URL settings" block, enter the new address in the "Store domain" and "SSL domain" fields and save the changes.
- Check the site's operation at the new address.