If you’re rebranding your retailer or altering merchandise, then a site identify change could also be within the playing cards for you. Preserve studying to learn to change your area identify in Magento 2.
What’s Magento 2?
Magento 2 is a robust ecommerce platform. As of April 2023, it powers about 8% of all ecommerce websites. Although supposed for medium-to-large on-line shops, Magento 2 is a good platform for SMB homeowners who want out-of-the-box integration with PayPay and Authorize.web, in addition to hard-driving SMB homeowners with a watch towards rapidly scaling their retailers.
Get totally managed Magento internet hosting
Speed up your retailer’s potential, with out the tedious upkeep
Why must you change your area identify?
There are a selection of the reason why you might need to change your area identify on Magento.
1. Enterprise identify change
Whether or not you need a identify change to mirror a change in your small business focus or a courtroom has dominated that you simply’re infringing on a trademark, generally it is advisable change your small business identify. If you happen to change the identify of your small business, it may usually make sense to replace your area identify to mirror that change.
Instance: The Worldwide Wrestling Federation determined to vary its identify following the 2002 courtroom ruling that it might not use the initials “WWF” (and, thus, not allowed to make use of the area identify, wwf.com).
2. gTLD or subdomain modifications
Though your gTLD has no impression in your Google Search rankings, your prospects might discover a .com top-level area identify simpler to recollect than a .retailer top-level area. Equally, a naked area or a www subdomain is perhaps simpler in your prospects to recollect.
Moreover, constant site-wide utilization of a naked subdomain or a www subdomain might simplify your backend use of web site cookies.
Instance: www.cookiesbyolivia.com and oliviasonthird.com are each simpler to recollect than are net.cookiesbyolivia.com and retailer.oliviasonthird.com.
3. Manufacturing deployment
Some builders prefer to develop and stage websites underneath a site identify apart from the area identify that will likely be utilized in manufacturing. When deploying the manufacturing web site, it is very important bear in mind to vary the area identify in Magento 2.
Instance: A developer would possibly construct and take a look at a retailer utilizing the URL olivia.magentostaging.com. They may change the area identify in Magento 2 to oliviasonthird.com when deploying the location in manufacturing mode.
Be taught methods to register your area identify right here.
Steps to altering the area identify in Magento 2
Altering the area identify in Magento 2 is so simple as updating the bottom URLs.
The instructions under are for altering the area identify in a single-store Magento 2 web site utilizing the Admin Dashboard. It’s also possible to change the area utilizing the command line or phpMyAdmin.
1. Go to the primary menu of your Admin Dashboard
2. Go to the navigation menu
Choose the Net tab.
3. Open the Base URLs submenu
Open it by clicking the down arrow.
4. Replace the Base URL subject
Replace the worth by altering your outdated area identify to the brand new area identify.
5. Shut the Base URLs submenu
You are able to do so by clicking the up arrow. Then, open the Base URLs (Safe) submenu by clicking the down arrow.
6. Go to the Safe Base URL subject
Replace the worth by altering your outdated area identify to the brand new area identify.
7. Click on Save Config
8. Take a look at the brand new area identify
You’ll be able to take a look at the brand new base URLs by each searching an present product in addition to by creating a brief new take a look at product.
Observe: Although Magento is meant to mechanically replace the cache, in case your web site is now returning 404s when utilizing your new base URLs, you might have to manually flush your Magento cache.
Don’t neglect: Replace your DNS data when altering your area identify to make sure that your new area factors to your Magento retailer. Observe that updating DNS data can generally be fast, however generally it may take as much as two days. If you happen to’re a Nexcess buyer, learn our article on altering domains and DNS data to study extra, and use our DNS checker software to make sure your new area works correctly.
Now you understand how to vary your area identify in Magento 2
That’s it!
Whether or not you’re constructing a web site from scratch or have an present web site you’d prefer to migrate over, we’ve acquired you lined. Take a look at our totally managed Magento internet hosting plans to get began as we speak.