Knowledgebase: Magento
Change Your Domain in Magento
Posted by ASO Admin on 11 February 2020 10:57 AM

Warning! Prior to following the instructions in this article, it is recommended that you make a full backup of your site.

If you need to update the domain name of your Magento installation, just follow these steps:

  1. Log in to cPanel

  2. In the Databases section, click the phpMyAdmin icon

  3. In the left-hand menu, click the link for your Magento database

  4. Click the link for the core_config_data table

  5. Look for the path fields named 'web/unsecure/base_url' and 'web/secure/base_url' (currently, the config_id is 2 and 3)

  6. Click the pencil icon for each of those rows and change each value to your new domain

If URLs are located in other database tables, additional changes may be required depending on your site configuration. You may also need to empty your '/var/cache/' folder before your domain name change will take effect.

If you are having difficulty updating the domain name of your Magento installation, please feel free to submit a ticket to our Support department to request a quote.

Temporary URLs

Magento will not work properly using a temporary URL. It is better to set up a subdomain to do the testing until your site is ready. For example, set up test to point to your account, and use this domain for your base URL.

(0 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
Full Name:
Help Desk Software by Kayako fusion
ERROR: This domain name (, does not match the domain name in the license key file

For assistance with your license, please contact the Kayako support team: