# Multisite

## Documentation

{% embed url="<https://wordpress.org/support/article/create-a-network/>" %}

Il suffit juste de rajouter la ligne suivante dans le fichier `wp-config.php` :

```
/* Multisite */
define( 'WP_ALLOW_MULTISITE', true );
```

Si on souhaite faire du **domain mapping** (c'est-à-dire utiliser des URLs différentes pour chaque sous-site), il faut suivre les instructions suivantes :

{% embed url="<https://wordpress.org/support/article/wordpress-multisite-domain-mapping/>" %}

{% embed url="<https://wpchannel.com/wordpress/tutoriels-wordpress/wordpress-multisite-domaine-mapping>" %}

### Docker

Avec Docker, c'est un peu différent puisqu'on ne peut pas toucher au fichier `wp-config.php`. Il faut suivre le tutoriel suivant :

{% embed url="<https://blog.wecoprod.com/wordpress-multisites-docker/>" %}

Puis, résoudre le problème de port avec :

{% embed url="<https://blog.wecoprod.com/wordpress-multisite-wpmu-local-docker/>" %}


---

# 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://wiki.wecoprod.com/wordpress/multisite.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.
