Magento Tutorials

How to Change Domain Name in Magento 2

Hello, Magento Friends!

Today I have come with an interesting topic and that is How to Change Domain Name in Magento 2. 

You might be in need of changing the domain name of your Magento 2 store if you think of rebranding your store or you desire to change the products you are selling. In this tutorial blog, I am going to demonstrate how you can change your Domain name in Magento 2.

Let’s dive into the steps of How to Change Domain Name in Magento 2!

Steps to Change Domain Name in Magento 2

Step 1: Log in to the admin panel of your Magento 2 website.

Step 2: Click on Stores > Configuration from the admin sidebar.

Step 3: Then, from the navigation menu, go to the General > Web tab.

Step 4: Extend the Base URLs section.

Step 5: In the Base URL field, replace your new URL with the current URL. i.e. if your current Magento 2 store domain is auroracreation.com and you wish to change it to xyz.com for example, then you can change it from here.

Step 6: In the same way, extend the Base URLs (Secure) section and change the domain name in the Secure Base URL field.

Step 7: Once you are done with all the above steps, click on Save Config from the top right as shown in the below image.

One thing to take into consideration is that the changed domain names in the Base URLs (Secure) and the Base URL must be the same.

That’s it!

Wrapping It Up!

So, this was about the domain name change in Magento 2. It is easy with minimal effort. Still, if you encounter any problems in changing the domain name of your Magento 2 website then you may connect with us through the comments section below. 

Have a G’Day!

Happy Reading!

Click to rate this post!
[Total: 5 Average: 5]
Gaurav Jain

Gaurav Jain is Co-Founder and Adobe Certified Expert-Magento Commerce Business Practitioner. Being Computer Engineer?‍? and possessing Extensive Marketing skills he handles all kinds of customer Queries and his Happy? & Helping? Nature makes customer's day Delightful. When he isn’t working, you’ll find Gaurav Reading on Books? or Traveling?. Also, he is Speaker at Magento Meetups.

Recent Posts

Improving Error Handling and Transition Management in Remix with useRouteError and useViewTransitionState

In modern web development, seamless navigation and state management are crucial for delivering a smooth…

6 days ago

Magento Open Source 2.4.8-Beta Release Notes

Magento Open Source 2.4.8 beta version released on October  8, 2024. The latest release of…

1 week ago

How to Create Catalog Price Rule in Magento 2 Programmatically?

Hello Magento Friends, Creating catalog price rules programmatically in Magento 2 can be a valuable…

1 week ago

Top 10 Tips to Hire Shopify Developers

As the world of eCommerce continues to thrive, Shopify has become one of the most…

2 weeks ago

Managing Browser Events and Navigation in Shopify Remix: useBeforeUnload, useHref, and useLocation Hooks

Shopify Remix is an innovative framework that provides a streamlined experience for building fast, dynamic,…

2 weeks ago

Ultimate Guide to Hiring a Top Shopify Development Agency

Building a successful eCommerce store requires expertise, and for many businesses, Shopify has become the…

2 weeks ago