# How to Setup Multiple Websites in Magento 2

The website is the top-level container for sites, shipping methods, payment methods, and so on. If you want to create completely separate sites that do not share that information, it is obligatory to create separate websites that will use the same domain or different domains. Thus, today, I’m going to instruct you how to **set up multiple websites for Magento 2** stores properly.

{% embed url="<https://devdocs.magento.com/guides/v2.4/config-guide/multi-site/ms_websites.html>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://blueskytechcompany.gitbook.io/minimog/frequently-asked-questions/how-to-setup-multiple-websites-in-magento-2.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
