How to modify the Magento associated domain

How to modify the Magento associated domain

When we modify the site of our Magento installation, the website loads incorrectly.

This happens because, at the time we installed Magento, the current path was registered.
 
To modify the paths of our installation, we need to manage the Magento installation database as follows.
 
We access phpMyAdmin of our hosting account -> http://domain.com/phpMyAdmin (replace domain.com with your own domain).
 
We select the database of our installation. If you only have one database, it will already be automatically selected:
 
 
We enter the "core_config_data" table:
 
 
We edit the "value" field of the records corresponding to "web/unsecure/base_url" and "web/secure/base_url":
 
 
Delete the cache folder
In addition to making this modification in the database, we must delete the cache folder located in the Magento installation directory, inside the /var/ folder.
 
We can delete it by connecting via FTP and removing the directory.
 
With these changes, Magento will work correctly after the domain name change and we will be able to access its administration panel. We only need to verify that everything works properly from the Magento administration area.


For more information, you can contact us.
    • Related Articles

    • How to modify the Moodle associated domain

      When we modify the site of our Moodle installation, the website loads incorrectly and we cannot access it. This happens because, at the time of installing Moodle, the current path is recorded. To modify the paths, we need to edit the Moodle ...
    • How to modify the associated domain of the Prestashop

      When we modify the site of our PrestaShop installation, the website loads incorrectly, the template or stylesheet does not load, we cannot access the admin panel, etc. This happens because, at the time of installing our PrestaShop, the current path ...
    • How to modify the domain and/or folder associated with Prestashop

      When we modify the site of our PrestaShop installation, the store may stop working. This happens because, at the time of installing PrestaShop, the current path is stored. To modify the paths of our installation, we must manage the PrestaShop ...
    • How to change the domain of accommodation

      To modify the domain name associated with the hosting, you must access the hosting management section. You can access it from the "Basic service list". Once you have accessed the hosting management section, you can modify the domain associated with ...
    • How to resolve Magento's most common mistakes

      Magento is a popular e-commerce content management system that allows us to manage our online store in a flexible and scalable way. Below, we explain how to resolve some of the most common errors you may encounter with Magento. How to view error ...