Multiple magento stores on single domain

Multiple magento stores on single domain

July 13, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Multiple magento stores on single domain

Setting Up Multiple Magento Stores on a Single Domain

Hello there! I’m going to help you set up two distinct Magento stores—one for your retail customers and another for wholesalers—all under the same domain. Let’s dive into this step-by-step.

Does This Approach Make Sense?

Absolutely, using separate stores is a sound approach when your products differ significantly between customer types. It allows for better organization, security (password protecting the wholesale section), and future scalability.

Directory Structure Basics

Your current structure looks good:

  • www.mysite.com: WordPress CMS
  • www.mysite.com/store: Magento e-commerce setup

The goal is to have:

  • www.mysite.com/store/retail for the retail storefront
  • www.mysite.com/store/wholesale for the wholesaler section (password-protected)

The Magento Website, Store, and View System Explained

You’re on the right track. You’ll need to create:

  1. One Magento website (mysite.com)

    • This represents your overall domain structure.
  2. Two stores

    • Store 1: Retail
      • Products visible to all
    • Store 2: Wholesale
      • Products hidden from non-logged-in users
  3. One view per store

    • View: English (or your preferred language)
      • Common global settings like currency, time zone etc.

Setting It Up

Step 1: Create the Website

  • Log into Magento admin panel.
  • Navigate to Stores > Settings > All Stores.
  • Click on “Add New Website”.
  • Fill in basic information and save.

Step 2: Create Stores Under the Website

  • In the same section, click on “Create Store”.
  • Choose the website you just created.
  • Fill in store details (name, code etc.).
  • Set the root category for each store differently.
  • Click “Save”.

Step 3: Configure Wholesale Password Protection

For this part, you might need a third-party extension. Here’s how to set it up:

  1. Install and enable your password protection module.

  2. Go to Stores > Configuration > Sales > Customer Configuration.

  3. Set Enable Wholesaler to yes for your wholesale store view only.

  4. Save configuration.

Conclusion

Setting up multiple Magento stores on a single domain is absolutely achievable with this approach. It provides clean separation, great security options (like password protecting the whole section), and better management capabilities.

Remember to thoroughly test both stores after setup to ensure everything works as expected.

Need further help or professional services? Check out what we offer at Laravel Company. Our team specializes in complex Magento implementations.

Happy developing!

Catalog Security Admin Configuration

Our network