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.

Change Magento Site 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.

Change Magento Site 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!

Discover the ultimate in Magento Hosting. Elevate your eCommerce site's performance, scalability, and speed for an exceptional user experience.
IC
InMotion Hosting Contributor Content Writer II

InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!

More Articles by InMotion Hosting

0 thoughts on “How to Change Your Magento URL

    1. I recommend updating both, but it might not be necessary if you are only serving content over https.

      Thank you,
      John-Paul

Was this article helpful? Join the conversation!

Questions about our MailChannels Deployment? We have answers and are here to help!Learn More
+