Skip to content

Multisite

Both network types are supported, and both are chosen at create time:

Terminal window
rex site create network.rex --type wordpress --multisite subdomain
rex site create network.rex --type wordpress --multisite subdirectory

Subdomain networks get a wildcard certificate

Section titled “Subdomain networks get a wildcard certificate”

A subdomain network serves sub.network.rex, and each of those needs to be trusted. rexenv issues the site’s leaf certificate with a wildcard SAN, so every subsite gets the green lock without a certificate per subsite.

DNS is already handled: rexenv’s resolver answers *.rex, so a new subsite resolves the moment WordPress creates it — no /etc/hosts entry, no restart.

network.rex/site-one. Nothing special is needed for certificates, since it is all one hostname. rexenv generates the rewrite rules the network type requires — the config generator keeps a separate template for single sites, subdomain networks and subdirectory networks precisely because their rewrites differ.

Terminal window
rex wp network.rex user list
rex wp network.rex plugin list
rex wp network.rex plugin activate my-plugin

The app’s WordPress manager shows network-level plugin and theme state, and network admin is one magic-login click away.

The two things that usually make multisite painful locally are wildcard DNS and wildcard certificates. Both are handled here, which means a subdomain network behaves the way it will in production rather than the way local workarounds usually force it to.