Step 2: Create websites

To create a website:

  1. Log in to the Admin as a user authorized to create websites, stores, and store views.

  2. Click Stores > Settings > All Stores.

  3. On the Stores page, click Create Website.

    • Name—Enter a name to identify the website.
    • Code—Enter a unique code; for example, if you have a French store, you can enter french
    • Sort Order—Enter an optional numerical sort order.

    The following figure shows an example.

    Add a website

  4. Click Save Web Site.

  5. Repeat these tasks as many times as necessary to create your websites.

Step 3: Create stores

To create a store:

  1. In the Admin panel, click Stores > Settings > All Stores.

  2. On the Stores page, click Create Store.

    • Web Site—Click the name of the website with which to associate this store.
    • Name—Enter a name to identify the store.
    • Code—Enter a unique code to identify the store.
    • Root Category—Click the name of the root category for this store.

    The following figure shows an example.

    Add a store

  3. Click Save Store.

  4. Repeat these tasks as many times as necessary to create your stores.

Step 4: Create store views

To create a store view:

  1. In the Admin panel, click Stores > Settings > All Stores.

  2. On the Stores page, click Create Store View.

    • Store—Click the name of the store with which to associate this store view.
    • Name—Enter a name to identify this store view.
    • Code—Enter a unique name to identify this store view.
    • Status—Select Enabled.

    The following figure shows an example.

    Add a store

  3. Click Save Store View.

  4. Repeat these tasks as many times as necessary to create your store views.

Step 5: Change the website base URL

To access a website using a unique URL like http://french.magento.mg, you must change the base URL for each site in the Admin.

To change the website base URL:

  1. In the Admin panel, click Stores > Settings > Configuration > General > Web.

  2. From the Store View list at the top of the page, click the name of one of your websites as the following figure shows.

    Select a scope

  3. In the right pane, expand Base URLs.

  4. In the Base URLs section, clear Use system value.

  5. Enter the http://french.magento.mg URL in the Base URL and Base Link URL fields.

  6. Repeat the previous step in the Base URLs (Secure) section.

    INFO
    If you are setting up a base URL for deployment Adobe Commerce on cloud infrastructure, you must replace the first period with three dashes. For example, if your base URL is french.branch-sbg7pPa-f3dueAiM03tpy.us.magentosite.cloud, enter http://french---branch-sbg7pPa-f3dueAiM03tpy.us.magentosite.cloud. If you are setting up a base URL for local testing, use a period.
  7. Click Save Config.

  8. Repeat these tasks for other websites.