Magento 2 Change Domain Name

The Most Popular Extension Builder for Magento 2

With a big catalog of 224+ extensions for your online store

Changing Domain Name in Magento 2 is necessary when you want to rebrand or place the new products in your Store. It is also known as changing the URL and the procedure to replace it in Magento 2 is similar to Magento 1.

Firstly, to change domain name, you should be sure that the new domain has proper configuration and show it on the servers of your installation. The new domain will be configured in Magento 2 easily.

2 Steps to Change Domain Name in Magento 2

Magento 1 and Magento 2 have the same store root URLs available and the record paths. However, Magento 2 has the third path in root URL, which makes the process to change the domain name of Magento 1 inadequate for Magento 2.

Step 1: Access to Configuration

  • On the Admin Sidebar, select Stores
  • Select Configuration

Access to Configuration

Step 2: Change Domain Name

  • Select General
  • Then choose Web on navigation menu

Change Domain Name

  • Expand the Base URL section For example, you want to change the current domain, you should replace it with the new one.

Expand the Base URL section

  • Similarly, do the same to change the Secure Base URL

Secure Base URL

  • Click Save Config to finish

Save Config


  • The domain name in Secure Base URL and Base URL should be changed the same
  • The new domain should have proper configuration

We hope this tutorial will enable you to change the domain name in Magento 2 without efforts. In case you still have questions or any problems, leave a comment and we will reach out to you soon.

Looking for
Customization & Development Services?

8+ years of experiences in e-commerce & Magento has prepared us for any challenges, so that we can lead you to your success.

Get free consultant
development service

Explore Our Products:

People also searched for


Stay in the know

Get special offers on the latest news from Mageplaza.

Earn $10 in reward now!

Earn $10 in reward now!

go up