Search code examples
wordpressmultisite

Subsite admin page 404 error of WordPress Multisite


When i try to login in wp-admin its opens perfectly fine but when i try to open dashboard of subsite, its dashboard loads without css and none of the links opens (below screenshot of the error) while the default dashboard working perfectly fine. This setup is working fine on my test server. Any help and fast response is appreciated.

screenshot of the error

This is my .htaccess rule

RewriteEngine On
RewriteBase /wordpress/site1/
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]

wp-config multisite setup

define( 'WP_ALLOW_MULTISITE', true );
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('DOMAIN_CURRENT_SITE', 'demo.site.com');
define('PATH_CURRENT_SITE', '/wordpress/site1/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);

Solution

  • Found the problem. Problem was in the server. It was not working with php-fpm. Now fixed this from server and server admin did it.
    If anyone found this problem please make sure about php-fpm. Also contact with server admin. Thanks.