Magento Themes and Magento Extensions

How do I change the Magento Base URL?


The Magento Base URL is the URL used to access Store pages. It can be set on a per Store basis, so every Store could have its own Base URL.

Before starting the changes please make sure that the domain you wish to use as Base URL is already resolved to the IP-address of your Store (so either domain’s DNS servers or IP-address were set to Magenting’s servers). To verify that DNS changes are done, you can just open the domain name in browser. If DNS is set correctly it will redirect you to current Base URL (in subdomain).

To change the Magento Base URL you need to switch to Magento Admin Area and modify the Base URL at System > Configuration > Web > Unsecure > Base URL and System > Configuration > Web > Secure > Base URL.

After that you need to flush Magento’s cache at System > Cache Management using the Flush Cache button to apply changes.

If you can not access Magento Admin area due to recent incorrect Base URL change, you may need to change the Base URL directly in database. In this case please use the following instructions instead of above:

  • Enable phpMyAdmin access
  • Login to phpMyAdmin, navigate to the core_config_data table, and change the values of the fields with ‘web/unsecure/base_url‘ and ‘web/secure/base_url‘ path

Flush Magento’s cache at System > Cache Management using the Flush Cache button to apply changes.

Leave a Reply

You must be logged in to post a comment.