In the following manual we will learn how to change the domain on a manually cloned/migrated PrestaShop installation. We will then provide you with all the modifications you would need to make to get your PrestaShop site working with the new URL.
By default, your cloned/migrated PrestaShop will remain connected to the original DB and will continue to use the URL of the original domain. For your Cloned PrestaShop to load its content correctly with the new domain name, it will be necessary to:
This guide is based on Prestashop version 1.7. It is not applicable to lower versions.
Next, we will check the file "parameters.php “ by accessing the Hosting Dashboard --> (side menu) Service management --> File manager --> ”/data/web/app/config/parameters.php " and, finally, by clicking on Edit file:
info_capture The screenshot is indicative. It was taken on version 2025.00.0017 dated 01/01/2025. It may differ from what the current version of SWPanel shows.
We will check the parameters:
danger In case the name of the database of the hosting or user verified previously, does not match those of the file "parameters.php" , we must modify the file, replacing the names.
Modify the file ".htaccess", by accessing the Hosting Dashboard --> (side menu) service management --> File manager --> "/data/web/’.htaccess", click on Edit file:
info_capture The screenshot is indicative. It was taken on version 2025.00.0017 dated 01/01/2025. It may differ from what the current version of SWPanel shows.
Modify all entries that the old URL, replacing them with the new URL.
Access by domain URL:
Access via web server URL:
https://{IPServidorWeb}/phpmyadmin/
You can find the IP of the web server associated to your hosting, by accessing Hosting Dashboard --> (side menu)Servers of the service --> IP Web Server.
Once inside the DB, you must modify the tables "xx_configuration" and "xx_shop_url".
You will be able to locate the table "xx_configuration" by scrolling down the tables in the side menu and moving between the pages. Once located, you will need to modify the parameters:
Replacing the old URL with the new URL.
TIP- Once inside the table "xx_configuration", you can locate the variables "XX_SHOP_DOMAIN" and "XX_SHOP_DOMAIN_SSL" in a simpler way, modifying the number of rows to ‘500’ and putting ‘domain’ in the search engine.
replace the old URL with the new URL.
In case the DNS records of the domain are not propagated, you will not be able to access the website normally, you can check the propagation status of your domain at the following URL:
To check your website, you can modify the host file of your computer, pointing the domain to the hosting manually. We attach the following manual which explains the process in detail:
Modify hosts file on Windows, Mac and Linux.
Afterwards, you will be able to access your website using the URL of your domain, as you would normally do.
In case of any problems or issues, we recommend that you activate debug mode manually.
You can activate debug mode by going to the Hosting Dashboard--> (side menu)service management --> file manager --> /data/web/config/defines.inc.php and change ‘false’ to ‘true’ in the following line:
define(‘_PS_MODE_DEV_’, false);
info_capture The screenshot is indicative. It was taken on version 2025.00.0017 dated 01/01/2025. It may differ from what the current version of SWPanel shows.
success Done! Now your Prestashop is correctly configured with the new URL.