A multisite can have either subdirectory or a subdomain structure.
Subdirectories:
example.com/subsite
example.com/anothersubsite
Subdomains:
subdomain.example.com
anothersubdomain.example.com
Configuring Domains in Multisite
If a multisite installation uses subdirectories, each of the subsites can be mapped with its own domain. Remember to define this domain in the Siteurl and Home fields in the individual subsite settings.
If the subsites already have content and links, the address structure must be updated in the sites' database with search-replace command. You can use Seravo Plugin's features to run this command.
Subdomain Installations
If you are using a subdomain-based installation and mapping custom domains to sub-sites, you must add the following line to your wp-config.php file to ensure logins work correctly without errors:
define( 'COOKIE_DOMAIN', $_SERVER['HTTP_HOST'] ?? '' );
Mercator and Subdomain Installation
Note!
We do not recommend using Mercator, even if the plugin has been previously installed on network installations with a subdomain structure. Our customer service can assist you with the removal of Mercator. You can reach us by sending a message to [email protected].
If your multisite uses a subdomain structure and has Mercator installed, the plugin can be used to map sub-sites to separate domains. Once Mercator is installed, a new field called Aliases will appear in the All Sites menu.
In the picture below, in the leftmost column, URL must always show the actual subdomains however, in order for the site cookies to function properly. In a subdomain multisite, accessing the subsite admin panel requires re-login.
Also the subsite's Site Address (URL) setting must always show the subdomain.
The separate domain must be defined as an Alias, and must of course be marked as active. Do note that while several aliases can be added, it is recommeneded to have only one active alias. If the intention is to direct several additional domains to a multisite subsite, it is recommended to use an nginx redirect instead.
Once a domain has been defined as an Alias for a subsite, it must also be configured as the subsite's Siteurl and Home (see the Settings-tab).
How Do I Publish a Multisite?
Publishing a multisite differs from the publishing of a normal site in certain ways. Unlike the standard process, it is advisable to change the addresses in the multisite database manually in advance using search-replace. In addition to this, the address must also be changed in the wp-config.php file, which is located on the server at the path /data/wordpress/htdocs/.
This file contains a number of multisite-related definitions, one of which is the site's primary address. The line you want to edit is the following:
define( 'DOMAIN_CURRENT_SITE', 'example.fi-c.seravo.com' );
Change the development address to the final primary domain for the site and save the changes. After these changes, the site will no longer be accessible via the browser until the primary domain has been pointed to our server and the DNS has had time to update. Despite this, it is still recommended to point the DNS after making the changes, as this allows our publishing automation to automatically generate the certificate and keeps the downtime associated with publication as small as possible.
If the domain starts point to our server before the addresses are changed in the database and the wp-config.php file, it will lead to the site being non-functional until both changes have been made.
Troubleshooting Common Issues
If you encounter issues after mapping domains, here are the solutions to the most common errors.
Error: "Cookies are blocked or not supported"
This is usually caused by a configuration mismatch. Ensure you have added the COOKIE_DOMAIN definition to your wp-config.php file as instructed above:
define( 'COOKIE_DOMAIN', $_SERVER['HTTP_HOST'] ?? '' );
Error: ERR_TOO_MANY_REDIRECTS
This typically occurs if there is a conflict between internal site settings and server-side redirections. Double-check that both the Site URL and Home URL in the network admin settings exactly match your primary domain.
Issue: Redirecting to wp-signup.php?new=...
If the domain redirects to the WordPress signup page, the network does not recognize it.
For primary sub-site domains: Verify the domain is correctly entered in the Site Address (URL) field.
For additional domains: If the domain is an alias, you must configure a redirect at the Nginx level. Without this, WordPress treats the traffic as a new site registration attempt.
I Wish to Make My WordPress a Multisite!
If you want to turn your site into a WordPress Network so that you can create a multisite, please contact Seravo's customer support.
Non-multisite WordPress
Are you looking for the instructions for how to configure a domain in a normal WordPress installation? See our instructions.





