---
title: "How to Change Your Magento URL"
description: "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..."
url: https://www.inmotionhosting.com/support/edu/magento/how-to-change-url/
date: 2014-09-16
modified: 2023-09-14
author: "InMotion Hosting Contributor"
categories: ["Magento"]
type: post
lang: en
---

# 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 Dashboard](#dashboard)
- [Change Magento Site URL in phpMyAdmin](#phpmyadmin)

## Change Magento Site URL in the Dashboard

1. [Login to your Magento Dashboard](https://www.inmotionhosting.com/support/edu/magento/how-to-log-into-magento-admin-panel/).
2. In the main menu, roll your mouse over **System**, and click **Configuration**. [![Changing your Magento URL](https://www.inmotionhosting.com/support/wp-content/uploads/2014/09/magento_system-configuration.png)](/support/wp-content/uploads/2014/09/magento_system-configuration.png)
3. On the next screen click the **Web** button. [![Web settings menu](https://www.inmotionhosting.com/support/wp-content/uploads/2014/09/magento_clicking-web-in-magento.png)](/support/wp-content/uploads/2014/09/magento_clicking-web-in-magento.png)
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](https://www.inmotionhosting.com/support/wp-content/uploads/2014/09/magento_changing-unsecure-base-url-magento.png)](/support/wp-content/uploads/2014/09/magento_changing-unsecure-base-url-magento.png)
5. Click the **Secure** link now. Fill in the *Base URL* in this section. [![updating domain name in Magento](https://www.inmotionhosting.com/support/wp-content/uploads/2014/09/magento_changing-secure-base-url-magento.png)](/support/wp-content/uploads/2014/09/magento_changing-secure-base-url-magento.png)
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](https://www.inmotionhosting.com/support/edu/magento/how-to-clear-the-magento-cache/).

## Change Magento Site URL in phpMyAdmin

1. [Login to cPanel](https://www.inmotionhosting.com/support/edu/cpanel/how-to-log-into-cpanel/).
2. Click the **phpMyAdmin** button in the *Databases* section. [![Database access in cPanel](https://www.inmotionhosting.com/support/wp-content/uploads/2014/09/magento_php-my-admin.png)](/support/wp-content/uploads/2014/09/magento_php-my-admin.png)
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](https://www.inmotionhosting.com/support/wp-content/uploads/2014/09/magento_core_config_data.png)](/support/wp-content/uploads/2014/09/magento_core_config_data.png)
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](https://www.inmotionhosting.com/support/edu/magento/how-to-clear-the-magento-cache/).

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

Discover the ultimate in [Magento Hosting](https://www.inmotionhosting.com/magento-hosting). Elevate your eCommerce site’s performance, scalability, and speed for an exceptional user experience.
