nginx – WordPress multisite wp-admin to many redirects

I have a WordPress blog set up with the multisite feature.

there are two blogs setup on it with the following URLs

# Main blog home

# Main blog admin

# 2nd blog home

# 2nd blog admin

Following the nginx configuration, I’m using

server {
        listen 80;
        root /var/www/website/build;

        index index.html index.htm index.php;

        # Serve blog
        location /blog {
                return 301 /blog/;

        location ^~ /blog/ {
                autoindex on;
                root /var/www/;
                index index.php index.html index.htm;

                try_files $uri $uri/ /blog/index.php?$args;

                location ~ .php$ {
                        include snippets/fastcgi-php.conf;
                        fastcgi_param  SCRIPT_FILENAME    $request_filename;
                        fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;

        # Serve other files
        location / {
                try_files $uri $uri/ =404;

        location ~ .php$ {
                include snippets/fastcgi-php.conf;
                fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;

        location ~ /.ht {
                deny all;

With this setup, every above URL is working, except the 2nd blog admin panel.
On accessing it is giving ERR_TOO_MANY_REDIRECTS error.

multi sites – Multisite not working after upgrade for Drupal 9

I have a docroot with 2 websites, both share core and contrib modules.

I have 2 DB, one for default and another for subdomain.

Inside “sites” folder also have 2 different folders:

My sites.php

$sites('') = 'default';   // dev
$sites('') = 'default';  // Test
$sites('') = 'default';        // Prod
$sites('local-site1.dd') = 'default';  // Local

$sites('') = 'site2';    // dev
$sites('') = 'site2';   // Test
$sites('') = 'site2';   // Prod
$sites('local-site2.dd') = 'site2';   // Local

On server certificate I have a wildcard *.

Locally both sites work fine, but on acquia server don’t.

If I open on incognito mode works fine, then I close incognito window, open a new incognito window and open also works fine.

If I open incognito window with and then I open new tab with doesn’t work, it seems to redirect both sites to one of them (random redirect, sometimes open on both domains and another ocasions open in both domains).

On server console when I run “drush status” everything is well defined, pointing to correct DB name, user, pass etc.

Is anything I am missing when upgrade for Drupal 9?

My Test env is with Drupal 8 and everything works as expected.

Thanks in advance.

multisite – Missing or invalid site address

I have a multisite with parked subdomains. The IPs on the parked domains are all set to point to the admin/main site, the DNS likewise. Two subdomains were set up last year seem to work fine. Adding two more now fail returning the error ‘Missing or invalid site address’.

The wp-config seems to be correctly set for domains and the URL seems to be correct in phpmyadmin. Disabling plugins has no effect, restoring from backup has no effect, but I haven’t been using the site for some weeks. I am the only admin. The webhost support looked into it but can’t see the problem and tell me it’s not server related (ie not their problem).

In Multisite the users profile picture keeps disappearing for “the other site”

I have the following setup: Site A with Domain A and Site B with Domain B

Site A is set to be the main site.

The users’ profile pictures have all been set via Site A and therefore Domain A.
They do show under “Network Admin > Users”, but they don’t show under “Site B > Users”.

If I now set an image for profile XYZ under “Site B > Users”, the URL for that profile pic changes to Domain B in the users table and there is no image anymore displayed for profile XYZ under Network Admin nor under Site A.

Any idea what the issue might be and is there a way around that?

redirection – Drupal multisite with subdomains: how to force /web in the URL?

I have installed a Drupal 8 multisite using Composer (as described by kalose ): basicly the folders created as subdomain-folders have been replaced with a symlink to the resp. subdomainfolders in /sites.
I have 2 websites on 2 subdomains, with following URL’s: and

I placed a index.php in public_html with a header ("Location:"); command to have all linking to the sub1-site. Works fine.

Where can I put a similar index.php to help users that use the old link “” to redirect to “” ?
Or any other solution to help users that forgot about the /web-suffix in the new URL.

WordPress Multisite pretty links stop working when changing dns of a network site to point to its own domain

I’m having an issue with the permalinks of my multisite. When my team works on creating network sites that are part of one multisite, they use pretty links, something like /about-us.

When we have said network site url pointing to a subfolder of our own multisite like so:

it works perfectly fine.

However as part of our process, once the network site is completed and we need to launch it to go live for our client to its own domain address like:

suddenly pretty links stop working and every internal URL begins giving us 404 errors.

I can fix this by changing our permalinks from any of the pretty link options to plain, and the links in the menu will be fixed, but obviously every spot where our designers linked to a page within the body of the content on the site by linking to a relative /about-us for example, it breaks.

I’ve been googling around and I can’t seem to find anything about how to fix this specific problem

I’m wondering if it has something to do with the fact that in the wp_blogs table, the path column gets updated from network-site to / ?

for example, before going live the table might look like:

domain          | path
---------------------------------------     | /network-site/

Then after going live it looks like:

domain           | path
---------------------------------------    | /

I assume that is the case, but I am not sure how to solve this. Does anyone have any advice? Thank you!

wp admin – WP Rocket not delivering the cached pages for all sites in a Multisite installation

We are running a Bitnami WordPress Multisite Stack for Google Cloud. In this WPMU install, we have:

  • The network is mapped to “” (I obviously replaced our real name here)
  • Several sites mapped to subdomains such as
  • Several sites mapped to different toplevel domains such as

Our WP Rocket Infinite license can be used on an infinite number of websites. We have activated it for each subsite (not at the network level), and we see the corresponding domains in our WP Rocket account.

However, we are facing a weird issue:

  • WP Rocket works perfectly well for the main domain and all the sites mapped to subdomains
  • WP Rocket does create the cached versions of the pages in the wp-content/cache/wp-rocket folder, but doesn’t deliver them!

For these problematic subsites, the response headers contain “no-store, no-cache” headers. It’s not the case for the main site and all the subsites mapped to subdomains.

During our investigations, at some point, we reached a strange situation where the cache was delivering cached pages for one of the subsites, but this behavior disappeared after some plugin activation/deactivation and it was not correct anyway.

I see no related topic on google. Does someone have any clue about that? I also have sent a support request to WP Rocket and will post here any info that I could gather.

PS: here is a screenshot of the currently installed WP Rocket-related plugins activated.

enter image description here