Knowledge Base Article

How to configure Magento to work with a new domain or change its directory

In order to configure Magento to work with a new domain or change its current directory, you should:

  • Edit the Magento database.
    Go to your cPanel > phpMyAdmin. Click on the Magento database from the menu on the left, find the table called core_config_data and click on it.
    Click the Browse tab and edit the first two fields:

    web/unsecure/base_url
    web/secure/base_url


    by clicking the pen icon in front of them. Replace your old domain name with your new one and click the Go button to save the change. 
  • Clear the Magento cache.

    The Magento cache folder is located in your Magento installation directory > /var/cache. To clear the cache, delete the folder and create it again.



Rating

Please indicate if this article was helpful for you.

rating :  4.8 from 5
views :  9274
votes :  64

Related Articles

Views

How to clear the cache in Magento? 26530
Magento Optimization 9596
How to redirect Magento to open through www? 8616
How to install Magento? 6431
How to upgrade Magento? 5689

Haven't found what you are looking for? Suggest an article HERE.

powered by

Valid XHTML 1.0 Strict Valid CSS!