Problems with WordPress multisite directories/url structures and admin access after migration

I don’t know how the migration was executed, but here are some things that have caught me out in the past. Files: Check the .htaccess and wp-config.php files. htaccess for a multisite should look something like this: RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ … Read more

Possible to reverse proxy WP multisite to a separate server with NGINX?

I’m not sure if it works first time, but lets try. server { server_name mydomain.com www.mydomain.com; root /var/www/html/wordpress/mydomain.com/wordpress/; # The “^~” modifier makes this location to take priority over regex-matched locations location ^~ /oldsite { proxy_pass http://my.old.ip; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } index index.php index.html; location /wp-content … Read more