Troubleshooting Common WordPress Multisite SSL and Domain Mapping Issues
Content
Configuring a WordPress Multisite network with proper SSL certificates and domain mapping is a common source of frustration. Users frequently encounter errors where the protocol (HTTPS) is stripped from URLs, subsites show security warnings, or fail to load entirely with errors like "DNS_PROBE_FINISHED_NXDOMAIN" or "ERR_HTTP2_PROTOCOL_ERROR". This guide breaks down why these problems occur and provides the most effective solutions based on community reports.
Why Do These Multisite SSL and Domain Issues Happen?
These problems are almost never caused by a bug in WordPress core itself. Instead, they arise from a complex interplay between three separate systems that must be configured correctly to work together:
- WordPress Multisite Configuration: The settings in your
wp-config.phpand.htaccessfiles. - Server/Hosting Environment: How your web server (e.g., Apache, Nginx, OpenLiteSpeed) handles requests and SSL certificates.
- DNS and Network-Level Setup: How your domains and subdomains are pointed to your server via DNS records.
A misconfiguration in any one of these areas will cause the entire setup to fail. Common triggers include updating PHP, changing server settings, or adding new domains without updating all corresponding configurations.
Most Common Solutions and Troubleshooting Steps
1. Verify Your SSL Certificate Coverage
The Problem: The padlock is broken on a subsite, or browsers show a "certificate does not match domain" error.
The Cause: Your main site's SSL certificate does not cover the subsite's domain or subdomain. A standard single-domain certificate for maindomain.com will not validate for subdomain.maindomain.com or a mapped domain like otherdomain.com.
The Solution: You must use a certificate that includes all necessary domains. There are two primary ways to do this:
- Wildcard Certificate: A certificate for
*.yourdomain.comwill cover all subdomains ofyourdomain.com(e.g.,sub1.yourdomain.com,sub2.yourdomain.com). It will not cover externally mapped domains likeotherdomain.com. - SAN (Subject Alternative Name) Certificate: This is a multi-domain certificate that can list any combination of domains and subdomains in its SAN field (e.g.,
maindomain.com,www.maindomain.com,otherdomain.com,sub.maindomain.com). This is often the required solution for networks using domain mapping.
You must work with your hosting provider to obtain and install the correct certificate. Let's Encrypt supports issuing both types of certificates for free.
2. Fix DNS and Subdomain Configuration
The Problem: New subsites return errors like "This site can’t be reached," "DNS_PROBE_FINISHED_NXDOMAIN," or the site appears to be not found.
The Cause: Creating a site in the WordPress Network Admin does not automatically create the necessary DNS record or server configuration for that subdomain. The domain must resolve to your server's IP address.
The Solution:
- For Subdomains: You must create a DNS record for each subdomain. An
Arecord pointing the subdomain (e.g.,staff.yoursite.com) to your server's IP address is the most direct method. Alternatively, aCNAMErecord pointing the subdomain to your main domain (e.g.,staff.yoursite.com CNAME yoursite.com) can also work and may be easier to manage. - For Mapped Domains: The external domain (e.g.,
otherdomain.com) must have anArecord pointing to your main WordPress server's IP address. - Server-Side: On some hosts (especially those using cPanel), you may also need to manually add the subdomain or parked domain in your hosting control panel so the server knows how to handle incoming requests for that address.
3. Check for HTTPS Stripping and Database Connection Errors
The Problem: The Site Address URL in the network admin saves as ://mydomain.com/ (missing the https), or visiting a subsite results in an "Error establishing a database connection."
The Cause: This can often be traced to an incomplete or incorrect wp-config.php setup for SSL across the network, or a server-level redirect that is interfering.
The Solution: Ensure your wp-config.php file includes the following lines to force SSL on the network admin and all sites:
define('FORCE_SSL_ADMIN', true);
// For situations where WordPress is behind a proxy/load balancer (like Cloudflare):
if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') {
$_SERVER['HTTPS'] = 'on';
}
If you are using a reverse proxy like Cloudflare, you must also ensure your SSL/TLS setting is set to "Full (strict)" mode and that your origin server has a valid certificate installed. Forcing HTTPS via a plugin can sometimes conflict with server-level rules, so it's often better to handle redirects in your .htaccess file or server configuration.
4. Flush Rewrite Rules and Permalinks
The Problem: A new subsite is created but results in a 404 error or a "critical error" when accessed.
The Solution: WordPress may not automatically flush its rewrite rules after creating a new site. Log into the affected subsite's dashboard, navigate to Settings > Permalinks, and simply click "Save Changes" without making any modifications. This forces WordPress to regenerate its rewrite rules, which can resolve many 404 issues.
When to Contact Your Hosting Provider
As evidenced in the sample threads, many Multisite SSL and domain issues require server-level support. You should contact your hosting provider for help if:
- You need to install a wildcard or SAN certificate.
- You are unsure how to create the correct DNS records (A, CNAME).
- You are receiving Apache/Nginx/LiteSpeed errors in your server logs that you don't understand.
- You have confirmed your DNS is correct but the subdomain still isn't routing to your WordPress installation.
Configuring WordPress Multisite is an advanced task that hinges on correct server setup. By methodically checking your certificate coverage, DNS records, and server configuration, you can resolve these common but frustrating issues.
Related Support Threads Support
-
After creating a subsite they all show This site can’t be reached errorshttps://wordpress.org/support/topic/after-creating-a-subsite-they-all-show-this-site-cant-be-reached-errors/
-
Admin subdomain of network: [an error occurred while processing this directive]https://wordpress.org/support/topic/admin-subdomain-of-network-an-error-occurred-while-processing-this-directive/
-
SSL não funciona corretamente com domínios aliases, hospedagem Hostagtorhttps://wordpress.org/support/topic/ssl-nao-funciona-corretamente-com-dominios-aliasses-hospedagem-hostagtor/
-
Multisite network works except for one subsitehttps://wordpress.org/support/topic/multisite-network-works-except-for-one-subsite/
-
Getting main ssl on subdomainshttps://wordpress.org/support/topic/getting-main-ssl-on-subdomains/
-
Messed up URL format, Multisite…https://wordpress.org/support/topic/messed-up-url-format-multisite/
-
“This site can’t be reached” after change domain GCP + openLiteSpeedhttps://wordpress.org/support/topic/this-site-cant-be-reached-after-change-domain-gcp-openlitespeed/
-
Secondary Subdomain Site, stuck at “loading…” after “webm” file uploadhttps://wordpress.org/support/topic/secondary-subdomain-site-stuck-at-loading-after-webm-file-upload/
-
SSL_ERROR_BAD_CERT_DOMAINhttps://wordpress.org/support/topic/ssl_error_bad_cert_domain-2/
-
New subdomain sites DNS problemhttps://wordpress.org/support/topic/new-subdomain-sites-dns-problem/
-
Problem with running MultiWP site with Cloudflarehttps://wordpress.org/support/topic/problem-with-running-multiwp-site-with-cloudflare/
-
After update to WP 5.7.2, valid wildcard SSL cert not recognized for WWWhttps://wordpress.org/support/topic/after-update-to-wp-5-7-2-valid-wildcard-ssl-cert-not-recognized-for-www/
-
Multisite subdomain questionhttps://wordpress.org/support/topic/multisite-subdomain-questoin/
-
New Subsite returned Errorhttps://wordpress.org/support/topic/new-subsite-returned-error/
-
I have error 403 wp-json in other domain when post new (subdomain is ok)https://wordpress.org/support/topic/i-have-error-403-wp-json-in-other-domain-when-post-new-subdomain-is-ok/
-
domain.fr connexion not allowedhttps://wordpress.org/support/topic/domain-fr-connexion-not-allowed/
-
I can’t access my new subdomainshttps://wordpress.org/support/topic/i-cant-access-my-new-subdomains/
-
What SSL Certificate Do I Need?https://wordpress.org/support/topic/what-ssl-certificate-do-i-need/
-
Multisite broken after forcing HTTPShttps://wordpress.org/support/topic/multisite-broken-after-forcing-https/
-
New Subsite (Domain mapped) stripping https from URLhttps://wordpress.org/support/topic/new-subsite-domain-mapped-stripping-https-from-url/
-
Subsite returns error for sub-domain added in cpanelhttps://wordpress.org/support/topic/subsite-returns-error-for-sub-domain-added-in-cpanel/
-
Main Domain Wildcard SSL Support WordPress Multisite Subdomainshttps://wordpress.org/support/topic/main-domain-wildcard-ssl-support-wordpress-multisite-subdomains/
-
Create new site php8.3 ?https://wordpress.org/support/topic/create-new-site-php8-3/
-
Domain refuse to connect.https://wordpress.org/support/topic/domain-refuse-to-connect/
-
Multisite error [autoindex:error] [pid 2455467]https://wordpress.org/support/topic/multisite-error-autoindexerror-pid-2455467/
-
sel hosted multisite Certbothttps://wordpress.org/support/topic/sel-hosted-multisite-certbot/