How to Change your Magento URL

There may be times when you need to change the URL, or domain name for your Magento website. For example, you may want to change your URL from www.example.com to example.com. In this guide I will show you how to change the URL for your Magento website.

Changing URL in the Dashboard

  1. Login to your Magento Dashboard.
  2. In the main menu, roll your mouse over System, and click Configuration.
    Changing your Magento URL
  3. On the next screen click the Web button.
    Web settings menu
  4. You will then be on the Web menu, click the Unsecure link, and it will drop down. In the Base URL section, update your URL.
    updating domain name in magento
  5. Click the Secure link now. Fill in the Base URL in this section.
    updating domain name in Magento
  6. Click the Save Config button in the top right when you are finished. You will then see a message stating “The configuration has been saved.
  7. Clear your Magento cache data.

Changing URL in phpMyAdmin

  1. Login to cPanel.
  2. Click the phpMyAdmin button in the Databases section.
    Database access in cPanel
  3. On the left menu, click the database that is associated wit your Magento website.
  4. Locate the table ending in core_config_data, and click it.
    Magento URL update in database
  5. In the path column, locate and update the URL in following lines, by clicking the Edit buttons: web/unsecure/base_url
    web/secure/base_url
  6. Click the Go button after updating each URL to save your changes.
  7. Clear your Magento cache data.

Congratulations, now you know how to change your Magento URL in the dashboard, and phpMyAdmin!

Thoughts on “How to Change your Magento URL

Leave a Reply