404 wp-admin page subdomain multisite
-
Any subdomains I create in wordpress multisite show Plesk 404 error when I try and visit their dashboards.
I’m running Plesk Version 18.0.57
I have checked the following and reinstalled many times:root@vps:/var/www/vhosts/system# sudo a2enmod rewrite
Module rewrite already enabled/* Add any custom values between this line and the “stop editing” line. */
define(‘WP_ALLOW_MULTISITE’, true);
define( ‘MULTISITE’, true );
define( ‘SUBDOMAIN_INSTALL’, true );
define( ‘DOMAIN_CURRENT_SITE’, ‘mydomain.com’ );
define( ‘PATH_CURRENT_SITE’, ‘/’ );
define( ‘SITE_ID_CURRENT_SITE’, 1 );
define( ‘BLOG_ID_CURRENT_SITE’, 1 );BEGIN WordPress The directives (lines) between “BEGIN WordPress” and “END WordPress” are dynamically generated, and should only be modified via WordPress filters. Any changes to the directives between these markers will be overwritten. Subfolder Example
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ – [L] add a trailing slash to /wp-adminRewriteRule ^([_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] SubDomain ExampleRewriteEngine On
RewriteBase /
RewriteRule ^index.php$ – [L] add a trailing slash to /wp-adminRewriteRule ^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 WordPressAny pointers or help would be great
- You must be logged in to reply to this topic.