Skip to content

WordPress Multisite

Run a network of WordPress sites as one WP Waterfall site: pick subdirectory or subdomain, give a subsite its own domain, and copy the network to staging.

WordPress Multisite runs many WordPress sites from one install, sharing plugins, themes, one database, and one list of users. WP Waterfall runs a network as one site: one container, one database, one disk, and one site license of your subscription. Storage, database size, and bandwidth add up across every site of the network, and your plan's and the site's tier limits apply to the total.

Needs WordPress on the environment. See Run a site without WordPress.

How do I create a network?

  1. Open Sites, then Add site, and choose Install WordPress.
  2. On Site options, set WordPress type to Multisite.
  3. On WordPress options, choose the Network type, then Create site.

The network type cannot change later. Reset site installs the network again in the type you choose.

Type Address of a new site
Subdirectory (the default) address/blog
Subdomain blog.address

The temporary address has no wildcard name (see Temporary domain). In a subdomain network, WP Waterfall instead gives every site except the main one its own temporary address under wpwaterfall.dev, built from the site name, such as es-live-your-site.wpwaterfall.dev (es-staging-your-site.wpwaterfall.dev on staging). A taken name gets a counter: es-2-live-your-site.wpwaterfall.dev. WP Waterfall sets up the DNS record, web server name, and certificate. It notices a site you create in the Network Admin within a few minutes, and removes the address when you delete the site. A site with a domain of its own stops using the temporary address.

You do not edit .htaccess or wp-config.php. WP Waterfall writes the network settings and web server rules for both types. Network tables use your table prefix. In this article wp_ stands for it. New uploads go to wp-content/uploads/sites/N.

What does the network card show?

The Info tab of a network has a WordPress network card with:

  • the network type and address;
  • every site, with its name, address, language when set, and a status: OK, Error (the home page does not load), Not checked, Needs a domain, or Domain on its way. Each site has an Open link and a button that copies its address;
  • Log in to Network Admin, which signs a super administrator in with one click (see WP Admin login), and Open Network Admin, which opens the normal sign in.

How do I give a site its own domain?

In Domains, select Add domain. Under Use this domain for, choose the whole network or one site, type the domain, and follow the DNS steps in Domains. The Add domain link on a network card opens this window with the site chosen.

  • One domain serves one site. A domain for one site is a single plain name: no www pair, no wildcard, and it cannot be primary.
  • To move the whole network to your domain, make that domain primary. Sites on the network address follow. Sites with a domain of their own stay.
  • Moving the network takes a restore point first, kept 48 hours, and a large network can take up to 30 minutes. If the move fails, WP Waterfall puts the restore point back, the network keeps its old address, and the job says so. Changes saved on the network while the move ran are not in the restore point.
  • Each domain gets its own certificate. On the Free Cloudflare plan a wildcard domain cannot route a subdomain network, so add one domain per site.
  • If you remove the domain, the site moves back under the network address.

What happens on staging, promote, restore, and reset?

Every copy of a network moves all of it. The network address changes in wp-config.php, wp_site, wp_blogs, wp_sitemeta, and in the options and content of every site, including serialized values.

  • A site on a custom domain gets an address on the new environment, such as /shop/ under the staging address. A staging network never uses the custom domains of live.
  • A promote or restore keeps the custom domains the target environment has now.
  • Search engines are blocked on every site of staging and of every preview.
  • Live code stays read only. A promote copies the database, never code.

How do plugins and themes work on a network?

On the Plugins and Themes tab, each row's menu adds network choices:

  • Activate for the network and Deactivate for the network for a plugin. A network plugin shows Active for the network.
  • Enable for the network and Disable for the network for a theme. A site can use a theme only after you enable it for the network.

Live code is read only: activate on staging, then promote. Deactivating works on live, because it changes only the database.

What are super administrators?

Super administrators run the Network Admin: every site, plugin, theme, and user. The User Management tab lists every user of the network. Make super administrator and Remove super administrator are in each user's menu and ask first. Give the right only to people you trust with all of it.

How do tools work on a network?

  • Search and replace covers the whole network, including wp_blogs and every site's tables. A dry run is the default. Replacing the network address also updates wp-config.php.
  • WP-CLI adds --url for the network address. Add your own --url, for example --url=address/blog, to run a command for one site. Allowed network commands: site list, site create, site archive, site unarchive, site activate, site deactivate, super-admin list, super-admin add, super-admin remove, theme enable --network, and theme disable --network.
  • Database lists the tables of every site in one database.
  • Analytics counts visits per address. Each site's domain is its own row.
  • Caching keeps a page cache entry per address and path. Clear caches clears all of them.

WP Waterfall does not create or delete the sites of a network for you. Use the Network Admin, or WP-CLI: site create --slug=blog.

Known behavior

  • A site on its own temporary address needs its own sign in, because the sign-in cookie belongs to one address.
  • Support sign-in opens the dashboard of the main site, not the Network Admin.
  • wp site create prints http:// for a new subdomain site. WP Waterfall moves it to its https temporary address within a few minutes.
  • On an environment in Git mode, language core install does not work, because code is read only. Add the language files (wp-content/languages/es_ES.mo and es_ES.po, plus plugin and theme files) to your repository, deploy, then set the site language, for example option update WPLANG es_ES --url=address/es. In SFTP mode, language core install es_ES works on staging.

API

  • GET /v1/environments/{id}/network reads the network: type, address, and every site with its state.
  • POST /v1/sites and POST /v1/sites/{id}/reset take multisite_mode (subdirectory or subdomain) with the multisite template.
  • POST /v1/environments/{id}/domains takes subsite_id to map a domain to one site.
  • POST /v1/environments/{id}/plugins/{slug}/activate, .../deactivate, and POST /v1/environments/{id}/themes/{slug}/activate take network: true. POST /v1/environments/{id}/plugins/bulk takes network too.
  • GET /v1/environments/{id}/super-admins lists super administrators. PUT /v1/environments/{id}/wp-users/{user_id}/super-admin grants or removes the right and needs confirm: true.
  • POST /v1/environments/{id}/wp-admin-login takes network: true.
  • MCP tools: create_site, get_network, add_domain, manage_plugin, manage_theme, bulk_extensions, set_super_admin.

Still stuck?

Email support at wpwaterfall dot com with your site name and what you tried, or send us a message.