On this page
What this issue is
WordPress Multisite runs many sites from one WordPress install. The network depends on four things lining up: constants in wp-config.php, rewrite rules in .htaccess or the server config, DNS records, and the site URLs stored in the database. If any of these disagrees with the others, the network misbehaves.
Typical symptoms are a sub-site showing the main site's content, an endless redirect loop, a 'Error establishing a database connection' message on one site only, login that bounces back to the login page, or a plugin that is network-activated on sites where it should not run.
| Cause | What you see |
|---|---|
| Missing wildcard DNS record for subdomains | New sub-site address does not load at all |
| Wrong DOMAIN_CURRENT_SITE or PATH_CURRENT_SITE | Redirect loops or the main site on every address |
| Missing or old multisite rewrite rules | 404 errors on sub-site pages, broken uploads |
| Cookie domain mismatch | Login works, then you are logged out or sent back to the login page |
| Mapped domain not matching the site URL | Custom domain redirects to the network address |
| HTTP and HTTPS mixed in site URLs | Mixed content warnings, redirect loops behind a proxy |
Why it costs you leads or sales
Each sub-site may be a separate landing site, brand or client. When one of them redirects wrongly or returns errors, visitors cannot reach forms or checkout. Tracking can also be affected: tags placed in a network-wide theme or plugin fire on every site, so one site's analytics or ad pixels may collect another site's traffic. The business impact is usually limited to the sites affected, which is why this is rated low, but the affected site can be fully down.
- Visitor opens sub-siteshop.example.com from an ad or search
- Network routingDomain not matched to a site, or redirect loop
- Landing pageWrong content or error page
- Form or checkoutNever reached
The break happens at the network routing step, so everything after it is lost.
The visitor clicks through, the network cannot match the domain, and an error appears instead of the page.
How to check if your site has it
- Open every sub-site's home page in a private window and confirm it shows its own content.
- Open a sub-site's wp-admin and log in. Check you stay logged in after a page click.
- In Network Admin > Sites, open each site's Edit screen and compare the Site Address (URL) with the address you actually use.
- Check
wp-config.phpfor the multisite constants (see below). - Check that the multisite rewrite rules are present in
.htaccessor the Nginx config. - For subdomain networks, confirm a wildcard DNS record (
*.example.com) exists. - Open the browser developer tools Network tab and look for redirect chains or 301 loops.
- Check Network Admin > Plugins and Themes to see what is network-activated.
define( 'WP_ALLOW_MULTISITE', true );
define( 'MULTISITE', true );
define( 'SUBDOMAIN_INSTALL', true );
define( 'DOMAIN_CURRENT_SITE', 'example.com' );
define( 'PATH_CURRENT_SITE', '/' );
define( 'SITE_ID_CURRENT_SITE', 1 );
define( 'BLOG_ID_CURRENT_SITE', 1 );How to fix it
Take a backup
Back up the database and files, including wp-config.php and .htaccess, before you change anything.
Match the constants to your setup
Set SUBDOMAIN_INSTALL to true for subdomains or false for subdirectories. Set DOMAIN_CURRENT_SITE to the main domain without a protocol, and PATH_CURRENT_SITE to the install path.
Restore the rewrite rules
Network Admin > Settings > Network Setup shows the exact rules for your network type. Copy them into .htaccess or your Nginx config and reload the server.
Fix DNS
For subdomain networks, add a wildcard A or CNAME record (*.example.com) pointing to the server. For mapped domains, point each domain to the same server.
Correct each site's URL
In Network Admin > Sites > Edit > Info, make the Site Address match the live domain and protocol. Fix any stale values in the wp_blogs and wp_options tables if the screen cannot be reached.
Sort out cookies
If logins loop, remove any hard-coded COOKIE_DOMAIN definition from wp-config.php, since it breaks networks with several domains.
Review network-wide plugins
Network-deactivate plugins and theme code that should not run on every site, then activate them per site.
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
# add a trailing slash to /wp-admin
RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
RewriteRule ^(.*\.php)$ $1 [L]
RewriteRule . index.php [L]Misconfigured
- Sub-site redirects to the main site
- Login bounces back to the login page
- No wildcard DNS record
- Site URL uses http while the server forces https
Fixed
- Each sub-site shows its own content
- Login persists across admin pages
- Wildcard DNS resolves new sub-sites
- Site URLs match the live protocol and domain
How to confirm it's fixed
Open every sub-site and every mapped domain in a private window. Confirm the right content loads, the address bar stays on the expected domain, and there is no redirect chain longer than one hop. Log in to wp-admin on a sub-site and on the network, and submit one test form per site to confirm it works and the email arrives.
How to prevent it happening again
- Keep a copy of wp-config.php and the server rewrite rules in version control.
- Test server or host migrations on a staging network first.
- Run search-replace on URLs with a tool that supports multisite, such as WP-CLI with the --network flag.
- Document which plugins are network-activated and why.
- Check every new sub-site and mapped domain right after launch.
wp search-replace 'old.example.com' 'new.example.com' --network --dry-run
# if the preview looks right, run it again without --dry-runHow FunnelGuard handles this
This issue is outside what FunnelGuard checks. Network settings, DNS records, rewrite rules and database values need a server-side tool: WP-CLI or a WordPress management dashboard for the configuration, and an uptime monitor or DNS monitor for whether each domain resolves.
What FunnelGuard does is run a real customer journey, such as a lead form, on a schedule and check the steps, tracking hits and whether test leads arrive. You can point a journey at a multisite sub-site like any other website, but it is a separate job from auditing your network configuration.
Questions people ask
Why is my WordPress multisite sub-site redirecting to the main site?
Usually the domain is not matched to a site in the network. Check the Site Address in Network Admin > Sites, the DOMAIN_CURRENT_SITE and PATH_CURRENT_SITE constants in wp-config.php, and that DNS points the sub-site address to the same server.
Why do I get a redirect loop on WordPress multisite?
Common causes are a mix of http and https in site URLs, a proxy or CDN forcing https while WordPress thinks it is on http, or a mapped domain that does not match the stored site URL. Make the stored URLs and the server redirect agree.
Why can't I log in to a multisite sub-site?
A hard-coded COOKIE_DOMAIN in wp-config.php is a frequent cause, as it stops cookies working across several domains. Remove it, clear your cookies and try again in a private window.
Do I need wildcard DNS for WordPress multisite?
For a subdomain network, yes. A wildcard record such as *.example.com lets every new sub-site resolve without adding a DNS entry each time. Subdirectory networks do not need it, and mapped domains each need their own record.
How do I get the correct multisite rewrite rules?
Go to Network Admin > Settings > Network Setup. WordPress shows the wp-config.php constants and the .htaccess rules for your network type. Nginx users need to translate them into their server config.
Can a multisite misconfiguration affect my tracking?
Yes. A tracking tag in a network-activated plugin or shared theme runs on every site, so analytics and ad pixels can record traffic from the wrong site. Activate tracking per site instead.
Does FunnelGuard check multisite network settings?
No. Network configuration needs a server-side or WordPress management tool. FunnelGuard runs customer journeys on a site, such as a form or checkout, and checks those steps and tracking.
Related issues
- OPS-247Site URL wrong after migration (redirects to staging)Fix guide
- OPS-246Permalink flush breaking URLs (404s)Fix guide
- OPS-241Plugin conflict causing white screenFix guide
- OPS-243Pending updates piling up (security debt)Fix guide
- OPS-239Caching plugin conflict (WP Rocket, LiteSpeed) breaking JSFix guide
- OPS-251WP REST API disabled breaking block formsFix guide