Cómo realizar un cambio de dominio en una instalación de PrestaShop migrada

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:

    1. Modify the "parameters.php" and ".htaccess" file.
    1. Replace the old PrestaShop URLs with the new URL in the database.

This guide is based on Prestashop version 1.7. It is not applicable to lower versions.

Locate DB

  1. First of all, we need to know which is the cloned/migrated DB inside the hosting. You can find out by accessing the Hosting Dashboard ---> (side menu) service management --> databases --> verifying the name of the DB and user.

Check the ‘parameters.php’ file.

  1. 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.

  2. We will check the parameters:

  • "database_name"
  • "database_user"

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’.

  1. 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.

  2. Modify all entries that the old URL, replacing them with the new URL.

Modify DB

  1. You will be able to access the database via the phpMyAdmin URL of your domain or web server.

Access by domain URL:

  • http://{yourdomain}.com/phpmyadmin/

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.

  1. Once inside the DB, you must modify the tables "xx_configuration" and "xx_shop_url".

  2. 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:

  • XX_SHOP_DOMAIN
  • XX_SHOP_DOMAIN_SSL

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.

  1. Modification of the table "xx_shop_url", you will be able to locate the table, by scrolling down the tables in the side menu and moving between the pages. Once located, you must modify the parameters:
  • "domain"
  • "domain_ssl"

replace the old URL with the new URL.

Access to the website

  1. Next, the PrestaShop database and internal configuration will be able to respond to the new URL. You can check this by accessing your website from the URL:
  • http://{yourdomain}.com

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:

  • https://www.whatsmydns.net/#A/{yourdomain.com}

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.

Activate Debug mode

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.


2025 SW Hosting. All rights reserved. The prices shown on the website do not include any applicable taxes.