WordPress
WordPress Multisite SEO Without the Duplicate-Content Headache
WordPress multisite SEO is the practice of making every site in a network rank as its own entity while keeping the network from competing with itself. In my builds it means a self-referencing canonical on each site, deliberate cross-site linking with absolute URLs, noindex rules for duplicated archives, and a separate XML sitemap per site verified in Search Console.
What changes when one install serves many sites
WordPress multisite SEO starts with a structural fact: one installation serves many sites, and each site owns its own options, permalink structure, theme and indexability setting. The network tables wp_blogs and wp_sitemeta hold the site registry, while each site reads from its own wp_N_posts and wp_N_options tables. A canonical, a robots rule or a sitemap fixed only on the main site is therefore not fixed on the others. In my builds I apply changes through a network-activated plugin that reads get_current_blog_id() and loops with get_sites(), so the rule holds on site 2 and site 200 alike. Saif Al Jahan, working from Mymensingh, treats the network as a set of independent publishing properties that happen to share code.
- Network tables: wp_blogs, wp_site and wp_sitemeta
- Per-site tables: wp_N_posts, wp_N_options and wp_N_terms
- get_current_blog_id() and switch_to_blog() control context
- blog_public stores the per-site search engine visibility setting
Choose the URL shape before you publish anything
The URL shape is set early by the MULTISITE and SUBDOMAIN_INSTALL constants in wp-config.php. A subdomain install gives every site a host such as site.example.com; a subdirectory install keeps one host and uses paths such as /site/. Neither shape has a built-in ranking advantage, but each creates different SEO work. Subdomains need wildcard TLS, separate host verification in Search Console and careful handling of mapped domains. Subdirectories share a host, so a physical robots.txt in the document root can override per-site rules, and stray paths can inherit the canonical of the main site. If branded domains are mapped through sunrise.php or a domain mapping plugin, decide which host is canonical and 301 the rest. Changing shape later means redirecting every URL.
- Subdomain install: site.example.com, wildcard SSL, per-host verification
- Subdirectory install: example.com/site/, shared host, root robots.txt wins
- Domain mapping: pick one canonical host and 301 the original and preview hosts
- Changing shape later means 301 redirects for every indexed URL
Site-level canonicals: one clean URL per page
Every page in a multisite should carry one self-referencing canonical on the exact host that appears in its sitemap. Core WordPress emits rel="canonical" in wp_head, and SEO plugins let you override it with the wpseo_canonical filter in Yoast or rank_math/frontend/canonical in Rank Math. The bugs I see are protocol mismatches, a mapped domain canonicalising to its original subdomain, and paginated archives pointing at page one. When two sites genuinely hold the same content, point the weaker copy at the original URL with a cross-domain canonical, or merge the pages with a 301. Never point all subsites at the network root; that tells search engines the network has one page instead of many.
- Self-referencing canonical on the chosen host and protocol only
- Cross-site duplicate: canonical to the original URL, never the network home
- Match canonical, sitemap URL and internal links character for character
- Override through wpseo_canonical or rank_math/frontend/canonical, not core files
Where multisite actually creates duplicate content
Duplication in a network rarely comes from deliberate copying. It comes from a starter site cloned to twenty locations with placeholder posts still live, from tag and category archives repeated on every site, from attachment pages, feeds and paginated archives, and from preview or staging hosts that were never blocked. WordPress exposes the blog_public option, the "Discourage search engines" setting, per site; when it is off, core adds a noindex robots tag through wp_robots. I use the wp_robots filter for archive types that should never be indexed, and I 301 mapped-domain duplicates to the chosen host. A physical robots.txt in a subdirectory install can silently override per-site rules, so I check the rendered response on more than one site.
- Strip placeholder posts and pages after cloning a starter site
- noindex tag, category and attachment archives through wp_robots
- Keep staging and preview hosts behind HTTP auth or noindex
- Serve one version of a mapped domain and 301 the original subdomain
- Check the rendered robots.txt on a subsite, not only the root
Cross-site linking that helps instead of confusing
Cross-site links are useful when they send a reader to genuinely relevant content on another site, and harmful when they are injected sitewide as a network footer on hundreds of domains. For a known post I use get_blog_permalink($blog_id, $post_id), which resolves the correct host without switching context. For queries across sites I call switch_to_blog() and restore_current_blog() around the lookup, then build an absolute URL. Anchor text should name the destination, for example "technical SEO audit checklist", not "read more". I keep these links in body copy where they answer a reader question, and I avoid automatic reciprocal blocks that look like a link scheme. Relevant destinations on this site include the SEO services and technical SEO pages linked below.
- get_blog_permalink($blog_id, $post_id) for a known post ID
- switch_to_blog() and restore_current_blog() around cross-site queries
- Absolute URLs using the canonical host and HTTPS
- Descriptive anchors in body copy, not a network-wide footer block
Per-site sitemaps and a network sitemap index
Since WordPress 5.5, core generates an XML sitemap at /wp-sitemap.xml for each site in a network, so there is no single network sitemap by default. On a subdomain install each host serves its own sitemap; on a subdirectory install each site serves one under its path. I filter wp_sitemaps_post_types and wp_sitemaps_taxonomies to remove post types and archives that carry noindex rules, and I use wp_sitemaps_enabled to switch off sitemaps for sites that should not be indexed at all. The wp_sitemaps_max_urls filter caps entries per sitemap at 2000 by default, which matters on large catalogues. In Search Console I verify each host, or a domain property covering the subdomains, then submit every site sitemap separately or maintain one custom index that lists them all.
- /wp-sitemap.xml exists per site, not once for the whole network
- wp_sitemaps_post_types and wp_sitemaps_taxonomies exclude noindex archives
- wp_sitemaps_max_urls defaults to 2000 entries per sitemap
- Verify each host in Search Console, then submit each sitemap
- A custom network index can list every site sitemap in one file
How I verify a multisite SEO build
I verify a multisite build on three sites before handover: the main site, the newest subsite and any mapped domain. I crawl each with columns for status code, canonical, title, meta description and robots directives, then compare the canonical against the sitemap URL character for character. Any template pushed network-wide gets crawled again before it reaches every site. On the performance side I check LCP, INP and CLS on a throttled mobile profile, because one network theme change can regress every site at once. Finally I confirm that internal links use the canonical host and that no staging host is indexable. That check list is the same discipline I apply on single-site technical SEO work, just multiplied by the number of sites.
Frequently asked questions
Should every subsite have its own canonical URL?
Yes. Each subsite should carry a self-referencing canonical on its own host, matching the URL in its sitemap and its internal links. Only when two sites publish genuinely identical content should one point to the other with a cross-site canonical. Pointing every subsite at the network home page collapses the whole network into a single signal and is a common cause of lost visibility.
Do subdomains or subdirectories rank better for a multisite network?
Neither has an inherent ranking advantage. Search engines treat both as separate URLs, and what matters is canonical consistency, unique content and clean internal linking. Subdomains add SSL and per-host Search Console work; subdirectories share a host and a robots.txt. Choose the shape that fits how you manage the network, because changing it later requires redirecting every indexed URL.
How do I prevent duplicate content across multisite locations?
Start by removing placeholder posts after cloning a starter site, then noindex tag, category and attachment archives with the wp_robots filter. Keep staging and preview hosts behind authentication, and 301 mapped-domain duplicates to one canonical host. Finally, give each location original page copy; canonical tags are a signal, not a substitute for distinct content.
Does each site need its own XML sitemap?
Yes. WordPress core serves /wp-sitemap.xml per site, so a network with twenty sites has twenty sitemaps by default. Submit each one in Search Console, or build a custom sitemap index that lists them all. Exclude any post type or taxonomy that carries a noindex rule using wp_sitemaps_post_types and wp_sitemaps_taxonomies, so conflicting signals do not reach crawlers.
Can one Search Console property cover the whole multisite network?
A domain property covers all subdomains under the registered domain, which helps with a subdomain install. It does not cover separately registered domains added through domain mapping, so those need their own properties and their own sitemap submissions. Verify ownership before you rely on Search Console data to judge which sites are indexed.