Magento Change URL

Magento store website URL in table core_config_data. This is the same for Magento 1 and Magento 2. To see the current URL, in phpMyAdmin or MySQL command line, run

Normally this shows 2 entries. If it shows more than 2 entries, it is because you have more store configured in your Magento installation. In such a case, you should be careful to change the correct URL.

To change the URL, run

Replace https://NEW_URL_HERE/ with your new website URL.

Magento 2

If you move a site from one site to another with a different folder structure, some static resources may not work as they use symlink and the path does not exist. To fix this, you need to re-deploy the static assets.

Clear cache with the command

Magento 1

If you use Magento 1, use the following command to flush the cache.

See Magento

Leave a Reply

Your email address will not be published. Required fields are marked *