Multisite redirection problem
-
We have recently been experiencing issues with our multisite setups on our Plesk server; they are incorrectly redirecting to each other. Additionally, the WP-toolkit in Plesk is displaying incorrect names for the multisite settings.
Initially, we had the multisite 1 with five sub-websites on the server, which always worked without any issues. We have recently added two other multisites: website and website website functioned correctly for several weeks but then started to redirect to #. After reinstalling the multisite,# began redirecting to #. # is now also redirecting to #. The WP-toolkit also incorrectly shows # as the name for these sites.
The wp-admin from 1 multisite is rederecting to another one.The site # was transferred using the All-in-One Migration plugin, # was created manually, and # was already existing and previously functioned well.
The multisites now seem not to be functioning correctly, only showing cached versions.
We have added the following definitions to the wp-config.php file:
phpCopy code define(‘ADMIN_COOKIE_PATH’, ‘/’); define(‘COOKIE_DOMAIN’, ”); define(‘COOKIEPATH’, ”); define(‘SITECOOKIEPATH’, ”);
In addition, we have added the following lines to the Nginx additional configuration:
nginxCopy code rewrite ^/([_0-9a-zA-Z-]+)/wp-admin$ /$1/wp-admin/index.php; rewrite ^/([_0-9a-zA-Z-]+)/wp-admin/$ /$1/wp-admin/index.php; rewrite ^/([_0-9a-zA-Z-]+)/((wp-(?:content|includes|admin)).)$ /$2 break; if ($request_uri !~ “^/(wp-(?:content|includes|admin)).“) { rewrite ^/([_0-9a-zA-Z-]+)/(..php)$ /$2 break; } set $test “”; if (!-e $request_filename) { set $test P; } if ($uri !~ ^/(plesk-stat|webstat|webstat-ssl|ftpstat|anon_ftpstat|awstats-icon|external-nginx-static-location)) { set $test “${test}C”; } if ($test = PC) { rewrite ^/.$ /index.php; }
We have also checked all databases, .htaccess, and wp-config files for incorrect URLs, but nothing unusual has been found.
Do you have any idea what could be causing these redirect issues?
The topic ‘Multisite redirection problem’ is closed to new replies.