in

How to Create Multiple Websites in Magento 2 with Easy Configuration

Want to serve different markets from one Magento installation? Magento 2 multiple websites configuration lets you manage separate storefronts while choosing which catalogs, currencies, and customer data they share. This guide explains how to plan your website, store, and store view structure, configure domains in the Admin, and test each storefront.

Want to reach different markets or manage several storefronts from one Magento installation? Magento 2 makes it possible to create multiple websites, each with its own domain, products, pricing, and customer experience—while sharing a single admin panel.

This guide walks you through Magento 2 multiple websites configuration, from setting up website scopes in the Admin to connecting store views and domains. With a few clear steps, you can organize your stores efficiently and tailor each site to its audience.

Understand Magento’s Website, Store, and Store View Structure

Before adding domains or configuring storefronts, it helps to picture how Magento organizes them. Think of the hierarchy as a set of layers: each one controls a different part of the customer experience, so choosing the right level now can prevent extra work later.

First, map your business needs to Magento’s three-part structure. The distinctions below will help you decide what belongs at the website level and what can remain a variation within one site.

Plan your Magento 2 multiple websites configuration

A website is the top-level sales destination, often used for a separate brand, market, or domain. Each website contains one or more stores; a store is associated with a root category, which lets you organize a distinct catalog structure. A store can then contain multiple store views, commonly used for language or other presentation differences.

For example, a retailer might create separate websites for its US and Canadian businesses, with a store for each product range and English and French views where needed. In this arrangement, views are not independent websites: they sit lower in the hierarchy and can present the same store differently. Sketching this structure before setup makes the Magento 2 multiple websites configuration easier to manage.

Use these questions to choose the right level for each requirement:

  • Does the destination need its own domain, sales rules, or market settings? Consider a separate website.
  • Does it need a different root category or catalog navigation? Create a separate store.
  • Is the difference mainly language or storefront presentation? Add a store view.

Once the hierarchy is clear, decide which business data should remain connected and which should be separated. The choices around catalog assignment, currency, and customer accounts affect both day-to-day administration and the experience shoppers receive.

Decide which catalogs, currencies, and customer data each website will share

Websites can use different product assignments, while stores can organize categories through their root categories. Product pricing can be configured at the global or website scope, depending on your setup, so determine whether markets need shared prices or market-specific ones. Currency display and permitted currencies should also match your sales regions; a different display currency alone does not replace appropriate pricing and payment configuration.

Customer account sharing is another deliberate choice. Magento can share accounts globally or limit them to a website, so decide whether shoppers should sign in across your sites or maintain separate accounts. Before building, record your decisions in a simple checklist:

  • Catalog: Which products and category structures belong on each site?
  • Currency and pricing: Which currencies will shoppers see, and where will prices differ?
  • Customer accounts: Should account access be shared globally or kept website-specific?

Set Up Magento 2 Multiple Websites Configuration in the Admin

With your storefront structure planned, the next step is to build it in the Admin and connect each site to the right domain and catalog. Taking the setup in order—from hierarchy to URLs to product assignments—helps prevent a storefront from appearing empty or loading under the wrong address.

Start by creating the hierarchy that matches your plan. In this subsection, you’ll add the website, its store, and at least one store view, then connect them in Magento’s store structure.

Create a website, store, and store view

Go to Stores > Settings > All Stores and select Create Website. Enter a name and a unique code; use a short code with lowercase letters and numbers, without spaces, because Magento uses it to identify the website internally. Add a sort order if you want to control how websites appear in the Admin.

Next, create a store and assign it to the new website. Choose the appropriate root category, then create a store view under that store and set its name, code, and status. A store view is required for the storefront to be available, even if you only need one language. Save the structure, then use the scope selector at the top of configuration pages to make settings for the correct website or view.

Once the hierarchy exists, give shoppers a reliable route to each storefront. The following settings connect Magento’s website scope to your domains and help avoid accidental changes to the global configuration.

Configure website URLs, domains, and scope settings

Open Stores > Configuration > General > Web, select the new website in the scope selector, and enter its Base URL and Base URL (Secure). Use the correct domain and HTTPS address for the storefront. If different sites use separate domains, make sure each domain’s DNS and web server or hosting configuration routes requests to the same Magento installation.

Check URL Options as well. Store codes in URLs are useful in some shared-domain setups, but may not suit every domain configuration. Test each address over HTTPS after saving, and confirm that the website-specific values were not entered at the Default Config scope by mistake.

With routing in place, finish by deciding what customers can browse on each site. Product assignment and category structure work together, so review both before publishing the storefront.

Assign products and categories to each storefront

For a website-specific catalog, edit a product and use the Websites section to select the sites where it should be available. You can also assign products in bulk when many items share the same destination. Verify that products are enabled, visible in the catalog, and have suitable prices for the selected website.

Categories are organized through the store’s assigned root category. In Catalog > Categories, build or update the category tree beneath that root, then check that categories are enabled and included in the menu where appropriate. Before launch, preview each storefront and confirm its navigation and product listings match the intended audience—an essential final check in your Magento 2 multiple websites configuration.

Test Your Websites and Troubleshoot Common Issues

A storefront can look correct in the Admin and still send shoppers to the wrong place—or leave them unable to complete a purchase. A few checks across real customer journeys can catch routing, catalog, and configuration problems before launch.

Begin with the basics: confirm that each domain reaches the intended website, then follow the same steps a shopper would take. These checks help distinguish a display issue from a problem with the site’s underlying configuration.

Verify storefronts, URLs, and customer journeys

Open each storefront in a private browser window and test its HTTP-to-HTTPS redirect, homepage, navigation, and product pages. Confirm that the correct store view, currency, language, and catalog appear. If your setup uses store codes in URLs, check that the address includes the expected code and does not redirect to another site.

Next, complete a representative customer journey: add an available product to the cart, proceed through checkout, and check that shipping and payment options match that website. Test account sign-in too, especially if customer accounts are configured to be website-specific. Keep a short checklist for every domain so that differences between storefronts are easy to spot.

If a change looks correct in the Admin but is missing on the storefront, cached data or an outdated index may be involved. Refresh only after saving configuration, and use the appropriate tool for the issue.

Refresh caches and reindex after configuration changes

From the Admin, go to System > Cache Management and refresh the relevant cache types; if the storefront still shows stale settings, flush the Magento cache. For command-line access, run bin/magento cache:flush from the Magento root directory. A full flush can affect performance briefly, so avoid doing it during a busy period when possible.

Reindex when product, category, or other indexed data is not updating as expected. Run bin/magento indexer:reindex, then check the storefront again. Not every configuration change requires reindexing, so use it to address stale indexed data rather than as a routine step after every edit.

When a storefront still behaves unexpectedly, narrow the cause by checking scope, routing, and catalog assignment first. These are common sources of trouble in a Magento 2 multiple websites configuration.

Resolve common Magento 2 multiple websites configuration issues

If a domain opens the wrong site, verify its DNS and web-server routing, then check the website’s Base URL and secure URL at the correct scope. If the wrong settings appear across sites, revisit the scope selector: a value saved under Default Config may override expectations or affect more storefronts than intended.

For missing products or categories, confirm that products are assigned to the website, enabled, and visible, and that the store uses the intended root category. If sign-in or cart behavior differs between domains, review customer account scope and cookie-domain settings. After correcting an issue, repeat the URL and checkout checks to confirm the fix across each storefront.

Build a Flexible Magento Setup for Every Market

Magento 2 lets you manage distinct storefronts from one installation, but a smooth setup starts with choosing the right structure for your websites, stores, and store views. Clear decisions about catalogs, pricing, currencies, and customer accounts help each site serve its audience without making administration harder than it needs to be.

Once your domains, scopes, and product assignments are in place, test each storefront as a shopper would—from browsing to checkout—and troubleshoot any routing or catalog issues before launch. With thoughtful planning and a few final checks, your Magento 2 multiple websites configuration can provide a consistent foundation for reaching new markets and growing your business.

Leave a Reply

Your email address will not be published. Required fields are marked *

      Written by Maeve Rodriguez

      Maeve is a Business Content Writer and Front-End Developer. She's a versatile professional with a talent for captivating writing and eye-catching design.