Multisite Dashboard not working

admin2025-01-07  3

I’m trying to set up a multisite environment with subdirectories, but when I add a new site and then go to the dashboard of the new site, it shows a completely white page with the links to the different admin menus and the links all lead to a white page saying “File not found”.

Here is a screenshot of what the admin page looks like .jpg

This is my htaccess file:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]

# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
</IfModule>

# END WordPress

And this is my multisite section in wp-config.php:

define('WP_ALLOW_MULTISITE', true);
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('DOMAIN_CURRENT_SITE', 'fresenia.man.poznan.pl');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);

I’m trying to set up a multisite environment with subdirectories, but when I add a new site and then go to the dashboard of the new site, it shows a completely white page with the links to the different admin menus and the links all lead to a white page saying “File not found”.

Here is a screenshot of what the admin page looks like https://i.sstatic.net/7dTFz.jpg

This is my htaccess file:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]

# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
</IfModule>

# END WordPress

And this is my multisite section in wp-config.php:

define('WP_ALLOW_MULTISITE', true);
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('DOMAIN_CURRENT_SITE', 'fresenia.man.poznan.pl');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);
Share Improve this question edited Dec 4, 2018 at 17:52 Gufran Hasan 6857 silver badges20 bronze badges asked Dec 4, 2018 at 15:49 MariusMarius 11 silver badge4 bronze badges 1
  • It looks like there's no stylesheets loaded, but there's no info from your browser dev console/error console, and no PHP error log info to confirm that or why – Tom J Nowell Commented Dec 4, 2018 at 16:20
Add a comment  | 

2 Answers 2

Reset to default 0

Just you need to put this code in .htaccess file

# BEGIN WordPress
RewriteEngine On
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]

# END WordPress

and this code in wp-config.php file

define('WP_DEBUG', false);
define('WP_ALLOW_MULTISITE', true);
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('DOMAIN_CURRENT_SITE', 'fresenia.man.poznan.pl');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);

It's working and tested code at my side.

I had a similar issue where i set up a multisite and the dashboard for the new site kept crashing. I done a bit of digging and found the plugin "Page Optimize" by wordpress to be the culprit.

Hope this helps someone.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1736257279a426.html

最新回复(0)